Title: [easy][asyncio] test_asyncio logs traceback with "NotImplementedError" · Issue #93850 · python/cpython · GitHub
Open Graph Title: [easy][asyncio] test_asyncio logs traceback with "NotImplementedError" · Issue #93850 · python/cpython
X Title: [easy][asyncio] test_asyncio logs traceback with "NotImplementedError" · Issue #93850 · python/cpython
Description: Running test_asyncio logs traceback with "NotImplementedError": $ ./python -m test test_asyncio --verbose (...) test_interrupt_call_soon (test.test_asyncio.test_runners.RunnerTests.test_interrupt_call_soon) ... Exception in callback inte...
Open Graph Description: Running test_asyncio logs traceback with "NotImplementedError": $ ./python -m test test_asyncio --verbose (...) test_interrupt_call_soon (test.test_asyncio.test_runners.RunnerTests.test_interrupt_c...
X Description: Running test_asyncio logs traceback with "NotImplementedError": $ ./python -m test test_asyncio --verbose (...) test_interrupt_call_soon (test.test_asyncio.test_runners.RunnerTests.test_i...
Opengraph URL: https://github.com/python/cpython/issues/93850
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[easy][asyncio] test_asyncio logs traceback with \"NotImplementedError\"","articleBody":"Running test_asyncio logs traceback with \"NotImplementedError\":\r\n\r\n```\r\n$ ./python -m test test_asyncio --verbose\r\n(...)\r\ntest_interrupt_call_soon (test.test_asyncio.test_runners.RunnerTests.test_interrupt_call_soon) ... Exception in callback interrupt_self() at /home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py:18\r\nhandle: \u003cTimerHandle when=93104.58238161601 interrupt_self() at /home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py:18\u003e\r\nTraceback (most recent call last):\r\n File \"/home/vstinner/python/main/Lib/asyncio/events.py\", line 80, in _run\r\n self._context.run(self._callback, *self._args)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py\", line 19, in interrupt_self\r\n _thread.interrupt_main()\r\n ^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/vstinner/python/main/Lib/asyncio/runners.py\", line 145, in _on_sigint\r\n self._loop.call_soon_threadsafe(lambda: None)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/vstinner/python/main/Lib/asyncio/base_events.py\", line 809, in call_soon_threadsafe\r\n self._write_to_self()\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/vstinner/python/main/Lib/asyncio/base_events.py\", line 511, in _write_to_self\r\n raise NotImplementedError\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^\r\nNotImplementedError\r\nok\r\n\r\ntest_interrupt_cancelled_task (test.test_asyncio.test_runners.RunnerTests.test_interrupt_cancelled_task) ... Task exception was never retrieved\r\nfuture: \u003cTask finished name='Task-1657' coro=\u003cRunnerTests.test_interrupt_cancelled_task.\u003clocals\u003e.subtask() done, defined at /home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py:366\u003e exception=NotImplementedError()\u003e\r\nTraceback (most recent call last):\r\n File \"/home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py\", line 369, in subtask\r\n interrupt_self()\r\n ^^^^^^^^^^^^^^^^\r\n File \"/home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py\", line 19, in interrupt_self\r\n _thread.interrupt_main()\r\n ^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/vstinner/python/main/Lib/asyncio/runners.py\", line 145, in _on_sigint\r\n self._loop.call_soon_threadsafe(lambda: None)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/vstinner/python/main/Lib/asyncio/base_events.py\", line 809, in call_soon_threadsafe\r\n self._write_to_self()\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/vstinner/python/main/Lib/asyncio/base_events.py\", line 511, in _write_to_self\r\n raise NotImplementedError\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^\r\nNotImplementedError\r\nok\r\n\r\ntest_interrupt_wait (test.test_asyncio.test_runners.RunnerTests.test_interrupt_wait) ... Exception in callback interrupt_self() at /home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py:18\r\nhandle: \u003cTimerHandle when=93104.694901935 interrupt_self() at /home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py:18\u003e\r\nTraceback (most recent call last):\r\n File \"/home/vstinner/python/main/Lib/asyncio/events.py\", line 80, in _run\r\n self._context.run(self._callback, *self._args)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/vstinner/python/main/Lib/test/test_asyncio/test_runners.py\", line 19, in interrupt_self\r\n _thread.interrupt_main()\r\n ^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/vstinner/python/main/Lib/asyncio/runners.py\", line 145, in _on_sigint\r\n self._loop.call_soon_threadsafe(lambda: None)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/vstinner/python/main/Lib/asyncio/base_events.py\", line 809, in call_soon_threadsafe\r\n self._write_to_self()\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/vstinner/python/main/Lib/asyncio/base_events.py\", line 511, in _write_to_self\r\n raise NotImplementedError\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^\r\nNotImplementedError\r\nok\r\n(...)\r\n```","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2022-06-15T11:09:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/93850/cpython/issues/93850"}
| 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:6ec5edb0-7678-fdef-31af-af166ad30cd3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA98:23762:41DF17:5871DA:69697E21 |
| html-safe-nonce | 6e98266f2720533d2a04fdd1da53aaf703a312553791c47db59e09688b3952f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTk4OjIzNzYyOjQxREYxNzo1ODcxREE6Njk2OTdFMjEiLCJ2aXNpdG9yX2lkIjoiNTA0OTYzNTgyMDk2MDA1NDgxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dc734aca76b4f3a821fcd7aaed6789686ab6a235b7c003e1022bad822f61a38a |
| hovercard-subject-tag | issue:1272068695 |
| 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/93850/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8645f7086ce8f169ab03a630349958f3f829adf36001f4f55923dd16cdd78fab/python/cpython/issues/93850 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8645f7086ce8f169ab03a630349958f3f829adf36001f4f55923dd16cdd78fab/python/cpython/issues/93850 |
| og:image:alt | Running test_asyncio logs traceback with "NotImplementedError": $ ./python -m test test_asyncio --verbose (...) test_interrupt_call_soon (test.test_asyncio.test_runners.RunnerTests.test_interrupt_c... |
| 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 | f33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77 |
| 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 | 48f380098b30acbb700b04f1724481ca10d574fc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width