Title: tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_post_init fails randomly · Issue #709 · MagicStack/uvloop · GitHub
Open Graph Title: tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_post_init fails randomly · Issue #709 · MagicStack/uvloop
X Title: tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_post_init fails randomly · Issue #709 · MagicStack/uvloop
Description: Found when building on NixOS: tests/test_process.py .......................................................Unexpected calls to loop.call_exception_handler(): [{'exception': InvalidStateError('invalid state'), 'handle': Open Graph Description: Found when building on NixOS: tests/test_process.py .......................................................Unexpected calls to loop.call_exception_handler(): [{'exception': InvalidStateError('inval...
X Description: Found when building on NixOS: tests/test_process.py .......................................................Unexpected calls to loop.call_exception_handler(): [{'exception': InvalidStateErro...
Opengraph URL: https://github.com/MagicStack/uvloop/issues/709
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_post_init fails randomly","articleBody":"Found when building on NixOS:\n\n```\ntests/test_process.py .......................................................Unexpected calls to loop.call_exception_handler():\n[{'exception': InvalidStateError('invalid state'),\n 'handle': \u003cHandle _UnixWritePipeTransport._call_connection_lost()\u003e,\n 'message': 'Exception in callback '\n '_UnixWritePipeTransport._call_connection_lost()'},\n {'exception': InvalidStateError('invalid state'),\n 'handle': \u003cHandle _UnixReadPipeTransport._call_connection_lost()\u003e,\n 'message': 'Exception in callback '\n '_UnixReadPipeTransport._call_connection_lost()'},\n {'exception': InvalidStateError('invalid state'),\n 'handle': \u003cHandle BaseSubprocessTransport._call_connection_lost()\u003e,\n 'message': 'Exception in callback '\n 'BaseSubprocessTransport._call_connection_lost()'}]\nF......................\ntests/test_process_spawning.py .\ntests/test_regr1.py s\ntests/test_runner.py ..\ntests/test_signals.py .....................\ntests/test_sockets.py ......................s..........\ntests/test_tcp.py .......................s.......................................................s.sss.ssss.sss.ss..ssssssss\ntests/test_testbase.py ...\ntests/test_udp.py ..................ss...\ntests/test_unix.py ..............s.s.................\n\n=================================== FAILURES ===================================\n________________ TestAsyncio_AIO_Process.test_cancel_post_init _________________\nTraceback (most recent call last):\n File \"/nix/store/48ak878425b9wyrkwd826d2043m3ii36-python3-3.13.11/lib/python3.13/unittest/case.py\", line 58, in testPartExecutor\n yield\n File \"/nix/store/48ak878425b9wyrkwd826d2043m3ii36-python3-3.13.11/lib/python3.13/unittest/case.py\", line 654, in run\n self._callTearDown()\n ~~~~~~~~~~~~~~~~~~^^\n File \"/nix/store/48ak878425b9wyrkwd826d2043m3ii36-python3-3.13.11/lib/python3.13/unittest/case.py\", line 611, in _callTearDown\n self.tearDown()\n ~~~~~~~~~~~~~^^\n File \"/nix/store/f10g6ix3rxlnh10aq4yrmyixgnw215lm-python3.13-uvloop-0.22.0/lib/python3.13/site-packages/uvloop/_testbase.py\", line 327, in tearDown\n super().tearDown()\n ~~~~~~~~~~~~~~~~^^\n File \"/nix/store/f10g6ix3rxlnh10aq4yrmyixgnw215lm-python3.13-uvloop-0.22.0/lib/python3.13/site-packages/uvloop/_testbase.py\", line 106, in tearDown\n self.fail('unexpected calls to loop.call_exception_handler()')\n ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/nix/store/48ak878425b9wyrkwd826d2043m3ii36-python3-3.13.11/lib/python3.13/unittest/case.py\", line 732, in fail\n raise self.failureException(msg)\nAssertionError: unexpected calls to loop.call_exception_handler()\n=========================== short test summary info ============================\nFAILED tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_post_init - AssertionError: unexpected calls to loop.call_exception_handler()\n===== 1 failed, 405 passed, 39 skipped, 8 deselected in 157.00s (0:02:36) ======\n```\n\nDebian maintainers also discussed about this failure: https://www.mail-archive.com/debian-bugs-dist%40lists.debian.org/msg2072110.html\n\nIt won't happen every time, but about half the time.\n\npython 3.13.11 or 3.14.2\nuvloop 0.22.0","author":{"url":"https://github.com/Aleksanaa","@type":"Person","name":"Aleksanaa"},"datePublished":"2025-12-24T13:56:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/709/uvloop/issues/709"}
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:c58f8f5c-9975-2bc5-19df-64699fe1f165 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 8EA8:A639C:2F51B65:3ED29D7:6964963E html-safe-nonce 796571f9c1d97b5b2c372d2d028382eb7a7e9e36114605b6c0819b101db6a8ea visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUE4OkE2MzlDOjJGNTFCNjU6M0VEMjlENzo2OTY0OTYzRSIsInZpc2l0b3JfaWQiOiI3NzIyMjMyNzQwNDgzMjA4NzY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac 302ecbcaadf66059dcb9f278bb996f886c2628c991d64aea270d0ad39ad59cca hovercard-subject-tag issue:3760386946 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/MagicStack/uvloop/709/issue_layout twitter:image https://opengraph.githubassets.com/5621b61cf043053730ebb33b78b9d446ce959d8177802c6b7cf12e026326286e/MagicStack/uvloop/issues/709 twitter:card summary_large_image og:image https://opengraph.githubassets.com/5621b61cf043053730ebb33b78b9d446ce959d8177802c6b7cf12e026326286e/MagicStack/uvloop/issues/709 og:image:alt Found when building on NixOS: tests/test_process.py .......................................................Unexpected calls to loop.call_exception_handler(): [{'exception': InvalidStateError('inval... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username Aleksanaa hostname github.com expected-hostname github.com None baa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5 turbo-cache-control no-preview go-import github.com/MagicStack/uvloop git https://github.com/MagicStack/uvloop.git octolytics-dimension-user_id 14324950 octolytics-dimension-user_login MagicStack octolytics-dimension-repository_id 45766550 octolytics-dimension-repository_nwo MagicStack/uvloop octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 45766550 octolytics-dimension-repository_network_root_nwo MagicStack/uvloop 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 842eff1d11f899d02b6b3b98fa3ea4860e64b34e ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.