Skip to content

Commit f3525b8

Browse files
committed
src/sage/doctest/forker.py: testing
1 parent 7726cd9 commit f3525b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sage/doctest/forker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,10 +709,12 @@ def compiler(example):
709709
elif self.options.gc < 0:
710710
gc.disable()
711711

712+
from cysignals.signals import SignalError
712713
try:
713714
# Don't blink! This is where the user's code gets run.
714715
self.compile_and_execute(example, compiler, test.globs)
715-
except SystemExit:
716+
except (SignalError, SystemExit):
717+
# Tests can be killed by signals in unexpected places.
716718
raise
717719
except BaseException:
718720
exception = sys.exc_info()

0 commit comments

Comments
 (0)