Skip to content

Commit e2604e8

Browse files
author
Release Manager
committed
gh-39114: Remove unnecessary dummy lines in doctests I didn't know the dummy line is unnecessary while working on #38945 . Better removing it so that future developers won't stumble upon it in the future. Side note: ideally instead of `known bug (meson ...)` we could just do `optional - !meson`. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - #12345: short description why this is a dependency --> <!-- - #34567: ... --> URL: #39114 Reported by: user202729 Reviewer(s): Kwankyu Lee
2 parents 655b70d + bc9beec commit e2604e8

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
@@ -403,14 +403,13 @@ def cython(self, line, cell):
403403
....: ''')
404404
UsageError: unrecognized arguments: --help
405405
406-
Test invalid quotes (see :mod:`sage.repl.interpreter` for explanation of the dummy line)::
406+
Test invalid quotes::
407407
408408
sage: # needs sage.misc.cython
409-
sage: print("dummy line"); shell.run_cell('''
409+
sage: shell.run_cell('''
410410
....: %%cython --a='
411411
....: print(1)
412412
....: ''')
413-
dummy line
414413
...
415414
ValueError...Traceback (most recent call last)
416415
...

0 commit comments

Comments
 (0)