Title: Running test_asyncio prints several tracebacks when succeeding · Issue #96911 · python/cpython · GitHub
Open Graph Title: Running test_asyncio prints several tracebacks when succeeding · Issue #96911 · python/cpython
X Title: Running test_asyncio prints several tracebacks when succeeding · Issue #96911 · python/cpython
Description: This is a bit distracting. If someone knows where these come from, let's come up with a patch to silence these. Details $ ./python.exe -m test test_asyncio 0:00:00 load avg: 1.44 Run tests sequentially 0:00:00 load avg: 1.44 [1/1] test_a...
Open Graph Description: This is a bit distracting. If someone knows where these come from, let's come up with a patch to silence these. Details $ ./python.exe -m test test_asyncio 0:00:00 load avg: 1.44 Run tests sequenti...
X Description: This is a bit distracting. If someone knows where these come from, let's come up with a patch to silence these. Details $ ./python.exe -m test test_asyncio 0:00:00 load avg: 1.44 Run tests sequ...
Opengraph URL: https://github.com/python/cpython/issues/96911
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Running test_asyncio prints several tracebacks when succeeding","articleBody":"This is a bit distracting. If someone knows where these come from, let's come up with a patch to silence these.\r\n\r\n\u003cdetails\u003e\r\n\r\n```\r\n$ ./python.exe -m test test_asyncio\r\n0:00:00 load avg: 1.44 Run tests sequentially\r\n0:00:00 load avg: 1.44 [1/1] test_asyncio\r\nException in callback interrupt_self() at /Users/guido/cpython/Lib/test/test_asyncio/test_runners.py:19\r\nhandle: \u003cTimerHandle when=50711.269859326 interrupt_self() at /Users/guido/cpython/Lib/test/test_asyncio/test_runners.py:19\u003e\r\nTraceback (most recent call last):\r\n File \"/Users/guido/cpython/Lib/asyncio/events.py\", line 80, in _run\r\n self._context.run(self._callback, *self._args)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/guido/cpython/Lib/test/test_asyncio/test_runners.py\", line 20, in interrupt_self\r\n _thread.interrupt_main()\r\n ^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/guido/cpython/Lib/asyncio/runners.py\", line 146, in _on_sigint\r\n self._loop.call_soon_threadsafe(lambda: None)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/guido/cpython/Lib/asyncio/base_events.py\", line 809, in call_soon_threadsafe\r\n self._write_to_self()\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/guido/cpython/Lib/asyncio/base_events.py\", line 511, in _write_to_self\r\n raise NotImplementedError\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^\r\nNotImplementedError\r\nTask exception was never retrieved\r\nfuture: \u003cTask finished name='Task-1679' coro=\u003cRunnerTests.test_interrupt_cancelled_task.\u003clocals\u003e.subtask() done, defined at /Users/guido/cpython/Lib/test/test_asyncio/test_runners.py:367\u003e exception=NotImplementedError()\u003e\r\nTraceback (most recent call last):\r\n File \"/Users/guido/cpython/Lib/test/test_asyncio/test_runners.py\", line 370, in subtask\r\n interrupt_self()\r\n ^^^^^^^^^^^^^^^^\r\n File \"/Users/guido/cpython/Lib/test/test_asyncio/test_runners.py\", line 20, in interrupt_self\r\n _thread.interrupt_main()\r\n ^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/guido/cpython/Lib/asyncio/runners.py\", line 146, in _on_sigint\r\n self._loop.call_soon_threadsafe(lambda: None)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/guido/cpython/Lib/asyncio/base_events.py\", line 809, in call_soon_threadsafe\r\n self._write_to_self()\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/guido/cpython/Lib/asyncio/base_events.py\", line 511, in _write_to_self\r\n raise NotImplementedError\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^\r\nNotImplementedError\r\nException in callback interrupt_self() at /Users/guido/cpython/Lib/test/test_asyncio/test_runners.py:19\r\nhandle: \u003cTimerHandle when=50711.372428525996 interrupt_self() at /Users/guido/cpython/Lib/test/test_asyncio/test_runners.py:19\u003e\r\nTraceback (most recent call last):\r\n File \"/Users/guido/cpython/Lib/asyncio/events.py\", line 80, in _run\r\n self._context.run(self._callback, *self._args)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/guido/cpython/Lib/test/test_asyncio/test_runners.py\", line 20, in interrupt_self\r\n _thread.interrupt_main()\r\n ^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/guido/cpython/Lib/asyncio/runners.py\", line 146, in _on_sigint\r\n self._loop.call_soon_threadsafe(lambda: None)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/guido/cpython/Lib/asyncio/base_events.py\", line 809, in call_soon_threadsafe\r\n self._write_to_self()\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/guido/cpython/Lib/asyncio/base_events.py\", line 511, in _write_to_self\r\n raise NotImplementedError\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^\r\nNotImplementedError\r\ntest_asyncio passed in 55.0 sec\r\n\r\n== Tests result: SUCCESS ==\r\n\r\n1 test OK.\r\n\r\nTotal duration: 55.0 sec\r\nTests result: SUCCESS\r\n$ \r\n```\r\n\r\n\u003c/details\u003e\r\n\r\nTested on macOS. Does not happen in 3.11.","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2022-09-18T03:54:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/96911/cpython/issues/96911"}
| 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:128de14d-79d7-ceff-5944-94fcee23880b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCB0:86B86:BDAF0:10E892:696A0A9E |
| html-safe-nonce | 5eabea6b81f168b50165bcf8d8886c60f2b2ca6e32b57ac80df1844fd10ec389 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0IwOjg2Qjg2OkJEQUYwOjEwRTg5Mjo2OTZBMEE5RSIsInZpc2l0b3JfaWQiOiI3MDQ2NDA0ODQwMjk1NjMxNTE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0a6e836d2772cd9f5ced621f280694d0903f3f0bc1e71c7724a071dae22e1853 |
| hovercard-subject-tag | issue:1376936634 |
| 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/96911/issue_layout |
| twitter:image | https://opengraph.githubassets.com/806345f6e5c2161d6f1cd422458faafcda12c69e45a0a1b00bb74f06e5281945/python/cpython/issues/96911 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/806345f6e5c2161d6f1cd422458faafcda12c69e45a0a1b00bb74f06e5281945/python/cpython/issues/96911 |
| og:image:alt | This is a bit distracting. If someone knows where these come from, let's come up with a patch to silence these. Details $ ./python.exe -m test test_asyncio 0:00:00 load avg: 1.44 Run tests sequenti... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gvanrossum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width