Skip to content

Commit e4ffe8e

Browse files
committed
Fix tests with IPython 9
1 parent 276aa66 commit e4ffe8e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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/repl/ipython_extension.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,10 +663,10 @@ def init_line_transforms(self):
663663
664664
sage: from IPython import get_ipython
665665
sage: ip = get_ipython()
666-
sage: ip.input_transformer_manager.check_complete(''' # indirect doctest
666+
sage: ip.input_transformer_manager.check_complete('''
667667
....: for i in [1 .. 2]:
668668
....: a = 2''')
669-
('incomplete', ...)
669+
('incomplete', 4)
670670
sage: ip.input_transformer_manager.check_complete('''
671671
....: def foo(L)
672672
....: K.<a> = L''')

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)