Skip to content

Commit bc9beec

Browse files
committed
Remove unnecessary dummy lines in doctests
1 parent f48da11 commit bc9beec

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/sage/repl/interpreter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@
7575
7676
sage: from sage.repl.interpreter import get_test_shell
7777
sage: shell = get_test_shell()
78-
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
79-
dummy line
78+
sage: shell.run_cell('1/0') # known bug (meson doesn't include the Cython source code)
8079
...
8180
ZeroDivisionError...Traceback (most recent call last)
8281
...

src/sage/repl/ipython_extension.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,14 +395,13 @@ def cython(self, line, cell):
395395
....: ''')
396396
UsageError: unrecognized arguments: --help
397397
398-
Test invalid quotes (see :mod:`sage.repl.interpreter` for explanation of the dummy line)::
398+
Test invalid quotes::
399399
400400
sage: # needs sage.misc.cython
401-
sage: print("dummy line"); shell.run_cell('''
401+
sage: shell.run_cell('''
402402
....: %%cython --a='
403403
....: print(1)
404404
....: ''')
405-
dummy line
406405
...
407406
ValueError...Traceback (most recent call last)
408407
...

0 commit comments

Comments
 (0)