You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_signal fails when run after test_pdb: test_pdb change SIGINT handler #162300
Activity
pythongh-162300: Save/restore SIGINT handler in test_pdb
vstinner commentedon Nov 20, 2026
Python 3.14 and 3.15 are also affected. Example with my regrtest patch to detect when a signal handler is overridden (and not restored):
Moreover, in these branches, setUpPdbBackend() of test_pdb doesn't currently save the old SIGINT handler.
vstinner commentedon Nov 20, 2026
I noticed this bug on iOS test suite where tests are run sequentially (in the same process) and test_signal with a
bdbexception