We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7726cd9 commit f3525b8Copy full SHA for f3525b8
src/sage/doctest/forker.py
@@ -709,10 +709,12 @@ def compiler(example):
709
elif self.options.gc < 0:
710
gc.disable()
711
712
+ from cysignals.signals import SignalError
713
try:
714
# Don't blink! This is where the user's code gets run.
715
self.compile_and_execute(example, compiler, test.globs)
- except SystemExit:
716
+ except (SignalError, SystemExit):
717
+ # Tests can be killed by signals in unexpected places.
718
raise
719
except BaseException:
720
exception = sys.exc_info()
0 commit comments