Title: test_signal fails when run after test_pdb: test_pdb change SIGINT handler · Issue #162300 · python/cpython · GitHub
Open Graph Title: test_signal fails when run after test_pdb: test_pdb change SIGINT handler · Issue #162300 · python/cpython
X Title: test_signal fails when run after test_pdb: test_pdb change SIGINT handler · Issue #162300 · python/cpython
Description: Bug report Example: $ ./python -m test test_pdb test_signal -v < /dev/null (...) ====================================================================== ERROR: test_pidfd_send_signal (test.test_signal.PidfdSignalTest.test_pidfd_send_signa...
Open Graph Description: Bug report Example: $ ./python -m test test_pdb test_signal -v < /dev/null (...) ====================================================================== ERROR: test_pidfd_send_signal (test.test_sign...
X Description: Bug report Example: $ ./python -m test test_pdb test_signal -v < /dev/null (...) ====================================================================== ERROR: test_pidfd_send_signal (test.test_s...
Opengraph URL: https://github.com/python/cpython/issues/162300
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_signal fails when run after test_pdb: test_pdb change SIGINT handler","articleBody":"### Bug report\n\nExample:\n\n```\n$ ./python -m test test_pdb test_signal -v \u003c /dev/null\n(...)\n======================================================================\nERROR: test_pidfd_send_signal (test.test_signal.PidfdSignalTest.test_pidfd_send_signal)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/vstinner/python/main/Lib/test/test_signal.py\", line 1479, in test_pidfd_send_signal\n signal.pidfd_send_signal(my_pidfd, signal.SIGINT)\n ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/vstinner/python/main/Lib/bdb.py\", line 291, in trace_dispatch\n return self.dispatch_opcode(frame, arg)\n ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^\n File \"/home/vstinner/python/main/Lib/bdb.py\", line 415, in dispatch_opcode\n if self.quitting: raise BdbQuit\n ^^^^^^^^^^^^^\nbdb.BdbQuit\n```\n\nI'm working on a fix.\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-162303\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2026-11-19T23:59:12Z","url":"https://github.com/python/cpython/issues/162300"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b2c37896-ed09-6f36-616e-93fb4284a9e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F4C:21BD98:2C75B1D:3870695:6B01E940 |
| html-safe-nonce | cef3c8a33276c12cad5a5407e250e59ba7620f1b766fcf64d5a41bce13c7d90b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjRDOjIxQkQ5ODoyQzc1QjFEOjM4NzA2OTU6NkIwMUU5NDAiLCJ2aXNpdG9yX2lkIjoiODYzMDM1MTcxMjQ5NzExNDI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c2053566a318baba6f774e0a14fbcc45f51fd1565bdd1ae813a61782f1c5cfc9 |
| hovercard-subject-tag | issue:6501568424 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/162300/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f1590d5f940918d7103b889784b8ddfec731c44a3df58303a4a04b8d63d4877f/python/cpython/issues/162300 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f1590d5f940918d7103b889784b8ddfec731c44a3df58303a4a04b8d63d4877f/python/cpython/issues/162300 |
| og:image:alt | Bug report Example: $ ./python -m test test_pdb test_signal -v < /dev/null (...) ====================================================================== ERROR: test_pidfd_send_signal (test.test_sign... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width