Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/sage/doctest/forker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,7 @@
from sage.repl.configuration import sage_ipython_config
from IPython.terminal.embed import InteractiveShellEmbed
cfg = sage_ipython_config.default()
cfg.InteractiveShell.enable_tip = False

Check warning on line 1493 in src/sage/doctest/forker.py

View check run for this annotation

Codecov / codecov/patch

src/sage/doctest/forker.py#L1493

Added line #L1493 was not covered by tests
# Currently this doesn't work: prompts only work in pty
# We keep simple_prompt=True, prompts will be "In [0]:"
# cfg.InteractiveShell.prompts_class = DebugPrompts
Expand Down Expand Up @@ -2193,7 +2194,7 @@
sage: W.start()
sage: DC = DocTestController(DD, filename)
sage: reporter = DocTestReporter(DC)
sage: W.join() # Wait for worker to finish

Check warning on line 2197 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12)

Warning: slow doctest:

slow doctest:

Check warning on line 2197 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11)

Warning: slow doctest:

slow doctest:

Check warning on line 2197 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, editable)

Warning: slow doctest:

slow doctest:

Check warning on line 2197 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11)

Warning: slow doctest:

slow doctest:

Check warning on line 2197 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12)

Warning: slow doctest:

slow doctest:
sage: result = W.result_queue.get()
sage: reporter.report(FDS, False, W.exitcode, result, "")
[... tests, ...s wall]
Expand Down Expand Up @@ -2320,7 +2321,7 @@
....: except OSError:
....: print("Write end of pipe successfully closed")
Write end of pipe successfully closed
sage: W.join() # Wait for worker to finish

Check warning on line 2324 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12)

Warning: slow doctest:

slow doctest:

Check warning on line 2324 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11)

Warning: slow doctest:

slow doctest:

Check warning on line 2324 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, editable)

Warning: slow doctest:

slow doctest:

Check warning on line 2324 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11)

Warning: slow doctest:

slow doctest:

Check warning on line 2324 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12)

Warning: slow doctest:

slow doctest:
"""
super().start()

Expand Down Expand Up @@ -2356,7 +2357,7 @@
sage: W.start()
sage: while W.rmessages is not None:
....: W.read_messages()
sage: W.join()

Check warning on line 2360 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12)

Warning: slow doctest:

slow doctest:

Check warning on line 2360 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11)

Warning: slow doctest:

slow doctest:

Check warning on line 2360 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, editable)

Warning: slow doctest:

slow doctest:

Check warning on line 2360 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11)

Warning: slow doctest:

slow doctest:

Check warning on line 2360 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12)

Warning: slow doctest:

slow doctest:
sage: len(W.messages) > 0
True
"""
Expand Down Expand Up @@ -2388,7 +2389,7 @@
sage: FDS = FileDocTestSource(filename, DD)
sage: W = DocTestWorker(FDS, DD)
sage: W.start()
sage: W.join()

Check warning on line 2392 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12)

Warning: slow doctest:

slow doctest:

Check warning on line 2392 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.11)

Warning: slow doctest:

slow doctest:

Check warning on line 2392 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (ubuntu, Python 3.12, editable)

Warning: slow doctest:

slow doctest:

Check warning on line 2392 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.11)

Warning: slow doctest:

slow doctest:

Check warning on line 2392 in src/sage/doctest/forker.py

View workflow job for this annotation

GitHub Actions / Conda (macos, Python 3.12)

Warning: slow doctest:

slow doctest:
sage: W.save_result_output()
sage: sorted(W.result[1].keys())
['cputime', 'err', 'failures', 'optionals', 'tests', 'walltime', 'walltime_skips']
Expand Down
5 changes: 3 additions & 2 deletions src/sage/repl/ipython_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,12 +661,13 @@ def init_line_transforms(self):

Check that :issue:`31951` is fixed::

sage: # indirect doctest
sage: from IPython import get_ipython
sage: ip = get_ipython()
sage: ip.input_transformer_manager.check_complete(''' # indirect doctest
sage: ip.input_transformer_manager.check_complete('''
....: for i in [1 .. 2]:
....: a = 2''')
('incomplete', ...)
('incomplete', 4)
sage: ip.input_transformer_manager.check_complete('''
....: def foo(L)
....: K.<a> = L''')
Expand Down
Loading