Title: test_threading: test_default_timeout() fails randomly ands logs "Warning -- Unraisable exception" · Issue #109401 · python/cpython · GitHub
Open Graph Title: test_threading: test_default_timeout() fails randomly ands logs "Warning -- Unraisable exception" · Issue #109401 · python/cpython
X Title: test_threading: test_default_timeout() fails randomly ands logs "Warning -- Unraisable exception" · Issue #109401 · python/cpython
Description: Example from issue #108987: test_default_timeout (test.test_threading.BarrierTests.test_default_timeout) Test the barrier's default timeout ... Warning -- Unraisable exception Exception ignored in thread started by: Open Graph Description: Example from issue #108987: test_default_timeout (test.test_threading.BarrierTests.test_default_timeout) Test the barrier's default timeout ... Warning -- Unraisable exception Exception ignored in ...
X Description: Example from issue #108987: test_default_timeout (test.test_threading.BarrierTests.test_default_timeout) Test the barrier's default timeout ... Warning -- Unraisable exception Exception ignored...
Opengraph URL: https://github.com/python/cpython/issues/109401
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_threading: test_default_timeout() fails randomly ands logs \"Warning -- Unraisable exception\"","articleBody":"Example from issue #108987:\r\n\r\n```\r\ntest_default_timeout (test.test_threading.BarrierTests.test_default_timeout)\r\nTest the barrier's default timeout ... Warning -- Unraisable exception\r\nException ignored in thread started by: \u003cfunction Bunch.__init__.\u003clocals\u003e.task at 0x053F5270\u003e\r\nTraceback (most recent call last):\r\n File \"D:\\a\\cpython\\cpython\\Lib\\test\\lock_tests.py\", line 48, in task\r\n f()\r\n File \"D:\\a\\cpython\\cpython\\Lib\\test\\lock_tests.py\", line 1020, in f\r\n i = barrier.wait()\r\n ^^^^^^^^^^^^^^\r\n File \"D:\\a\\cpython\\cpython\\Lib\\threading.py\", line 709, in wait\r\n self._wait(timeout)\r\n File \"D:\\a\\cpython\\cpython\\Lib\\threading.py\", line 749, in _wait\r\n raise BrokenBarrierError\r\nthreading.BrokenBarrierError: \r\nERROR\r\ntest_repr (test.test_threading.BarrierTests.test_repr) ... Warning -- Unraisable exception\r\nException ignored in thread started by: \u003cfunction Bunch.__init__.\u003clocals\u003e.task at 0x053F5270\u003e\r\nTraceback (most recent call last):\r\n File \"D:\\a\\cpython\\cpython\\Lib\\test\\lock_tests.py\", line 48, in task\r\n f()\r\n File \"D:\\a\\cpython\\cpython\\Lib\\test\\lock_tests.py\", line 1020, in f\r\n i = barrier.wait()\r\n ^^^^^^^^^^^^^^\r\n File \"D:\\a\\cpython\\cpython\\Lib\\threading.py\", line 709, in wait\r\n self._wait(timeout)\r\n File \"D:\\a\\cpython\\cpython\\Lib\\threading.py\", line 749, in _wait\r\n raise BrokenBarrierError\r\nthreading.BrokenBarrierError: \r\nWarning -- Unraisable exception\r\nException ignored in thread started by: \u003cfunction Bunch.__init__.\u003clocals\u003e.task at 0x053F5270\u003e\r\nTraceback (most recent call last):\r\n File \"D:\\a\\cpython\\cpython\\Lib\\test\\lock_tests.py\", line 48, in task\r\n f()\r\n File \"D:\\a\\cpython\\cpython\\Lib\\test\\lock_tests.py\", line 1020, in f\r\n i = barrier.wait()\r\n ^^^^^^^^^^^^^^\r\n File \"D:\\a\\cpython\\cpython\\Lib\\threading.py\", line 709, in wait\r\n self._wait(timeout)\r\n File \"D:\\a\\cpython\\cpython\\Lib\\threading.py\", line 749, in _wait\r\n raise BrokenBarrierError\r\nthreading.BrokenBarrierError: \r\nWarning -- Unraisable exception\r\nException ignored in thread started by: \u003cfunction Bunch.__init__.\u003clocals\u003e.task at 0x053F5270\u003e\r\nTraceback (most recent call last):\r\n File \"D:\\a\\cpython\\cpython\\Lib\\test\\lock_tests.py\", line 48, in task\r\n f()\r\n File \"D:\\a\\cpython\\cpython\\Lib\\test\\lock_tests.py\", line 1020, in f\r\n i = barrier.wait()\r\n ^^^^^^^^^^^^^^\r\n File \"D:\\a\\cpython\\cpython\\Lib\\threading.py\", line 700, in wait\r\n self._enter() # Block while the barrier drains.\r\n ^^^^^^^^^^^^^\r\n File \"D:\\a\\cpython\\cpython\\Lib\\threading.py\", line 724, in _enter\r\n raise BrokenBarrierError\r\nthreading.BrokenBarrierError: \r\nok\r\n```\r\n\r\nbuild: https://github.com/python/cpython/actions/runs/6094370280/job/16535778004#step:5:103\r\n\r\nIn issue #108987, I fixed a crashed which occurred in this test when the test failed.\r\n\r\nI create this issue to focus on the **test failure** and ``Warning -- Unraisable exception``.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-109875\n* gh-109876\n* gh-109877\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-09-14T11:43:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/109401/cpython/issues/109401"}
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:0e7f882d-19fb-98a7-de90-34d045d636e7 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id ADEE:305A31:36E04:464BE:696B31A3 html-safe-nonce 8407f337179cddd4ab98336ed506f38e20394e80f5392418365817ad6cb581fc visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREVFOjMwNUEzMTozNkUwNDo0NjRCRTo2OTZCMzFBMyIsInZpc2l0b3JfaWQiOiIyMTgxODcwNjMxMTE0MTkxMjY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac ef100c40bb79b474df100064576878b3ac0237695fc4ce93bea2996ee0a5cdb3 hovercard-subject-tag issue:1896392932 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/109401/issue_layout twitter:image https://opengraph.githubassets.com/0b47148fd7f130ebd9ce28fe935bd396be494a7e293849a6f72e35b207caa79e/python/cpython/issues/109401 twitter:card summary_large_image og:image https://opengraph.githubassets.com/0b47148fd7f130ebd9ce28fe935bd396be494a7e293849a6f72e35b207caa79e/python/cpython/issues/109401 og:image:alt Example from issue #108987: test_default_timeout (test.test_threading.BarrierTests.test_default_timeout) Test the barrier's default timeout ... Warning -- Unraisable exception Exception ignored in ... 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 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d 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 82560a55c6b2054555076f46e683151ee28a19bc ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.