Skip to content

Commit

Permalink
Remove unnecessary dummy lines in doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
user202729 committed Dec 10, 2024
1 parent f48da11 commit bc9beec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/sage/repl/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@
sage: from sage.repl.interpreter import get_test_shell
sage: shell = get_test_shell()
sage: print("dummy line"); shell.run_cell('1/0') # known bug (meson doesn't include the Cython source code) # see #25320 for the reason of the `...` and the dummy line in this test
dummy line
sage: shell.run_cell('1/0') # known bug (meson doesn't include the Cython source code)
...
ZeroDivisionError...Traceback (most recent call last)
...
Expand Down
5 changes: 2 additions & 3 deletions src/sage/repl/ipython_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,14 +395,13 @@ def cython(self, line, cell):
....: ''')
UsageError: unrecognized arguments: --help
Test invalid quotes (see :mod:`sage.repl.interpreter` for explanation of the dummy line)::
Test invalid quotes::
sage: # needs sage.misc.cython
sage: print("dummy line"); shell.run_cell('''
sage: shell.run_cell('''
....: %%cython --a='
....: print(1)
....: ''')
dummy line
...
ValueError...Traceback (most recent call last)
...
Expand Down

0 comments on commit bc9beec

Please sign in to comment.