Skip to content

Commit b4280d2

Browse files
committed
Disable IPython tips in doctest runner
1 parent e4ffe8e commit b4280d2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/sage/doctest/forker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,6 +1490,7 @@ def report_failure(self, out, test, example, got, globs):
14901490
from sage.repl.configuration import sage_ipython_config
14911491
from IPython.terminal.embed import InteractiveShellEmbed
14921492
cfg = sage_ipython_config.default()
1493+
cfg.InteractiveShell.enable_tip = False
14931494
# Currently this doesn't work: prompts only work in pty
14941495
# We keep simple_prompt=True, prompts will be "In [0]:"
14951496
# cfg.InteractiveShell.prompts_class = DebugPrompts

src/sage/doctest/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@
432432
s...: a = 3
433433
s...: b = 5
434434
s...: a + b
435-
8...
435+
8
436436
sage:
437437
<BLANKLINE>
438438
Returning to doctests...

src/sage/tests/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def test_executable(args, input='', timeout=100.0, pydebug_ignore_warnings=False
375375
4
376376
**********************************************************************
377377
Previously executed commands:
378-
s...: assert True is False...
378+
s...: assert True is False
379379
sage:
380380
<BLANKLINE>
381381
Returning to doctests...

0 commit comments

Comments
 (0)