Skip to content

Commit

Permalink
src/sage/doctest/forker.py: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
orlitzky committed Oct 16, 2024
1 parent 7726cd9 commit f3525b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sage/doctest/forker.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,10 +709,12 @@ def compiler(example):
elif self.options.gc < 0:
gc.disable()

from cysignals.signals import SignalError
try:
# Don't blink! This is where the user's code gets run.
self.compile_and_execute(example, compiler, test.globs)
except SystemExit:
except (SignalError, SystemExit):
# Tests can be killed by signals in unexpected places.
raise
except BaseException:
exception = sys.exc_info()
Expand Down

0 comments on commit f3525b8

Please sign in to comment.