Title: IsolatedAsyncioTestCase `__del__` could be dangerous · Issue #96021 · python/cpython · GitHub
Open Graph Title: IsolatedAsyncioTestCase `__del__` could be dangerous · Issue #96021 · python/cpython
X Title: IsolatedAsyncioTestCase `__del__` could be dangerous · Issue #96021 · python/cpython
Description: It looks like in IsolatedAsyncioTestCase when debug() crashes it doesn't teardown the event loop, in addition it seems that if the loop isn't torn down it will happen in __del__ which means thread local sensitive functions like set_event...
Open Graph Description: It looks like in IsolatedAsyncioTestCase when debug() crashes it doesn't teardown the event loop, in addition it seems that if the loop isn't torn down it will happen in __del__ which means thread ...
X Description: It looks like in IsolatedAsyncioTestCase when debug() crashes it doesn't teardown the event loop, in addition it seems that if the loop isn't torn down it will happen in __del__ which means...
Opengraph URL: https://github.com/python/cpython/issues/96021
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IsolatedAsyncioTestCase `__del__` could be dangerous ","articleBody":"It looks like in IsolatedAsyncioTestCase when `debug()` crashes it doesn't teardown the event loop, in addition it seems that if the loop isn't torn down it will happen in `__del__` which means thread local sensitive functions like `set_event_loop` get called via the GC from potentially the wrong thread\r\n\r\n_Originally posted by @graingert in https://github.com/python/cpython/pull/95898#discussion_r946516908_","author":{"url":"https://github.com/graingert","@type":"Person","name":"graingert"},"datePublished":"2022-08-16T09:05:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/96021/cpython/issues/96021"}
| 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:db2024df-9f93-1dbd-880a-7011406a7d0a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2E2:2F843D:DAE785:12E11B0:696A8EBD |
| html-safe-nonce | 751f890045feda420d9bcd87774058550af6f666bef8dcec9d1cb9e7e69057ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkUyOjJGODQzRDpEQUU3ODU6MTJFMTFCMDo2OTZBOEVCRCIsInZpc2l0b3JfaWQiOiI4MjY0NTY2MTQwOTUxOTU4MzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e4726bc2e87fb6583f51ef5093b4dc418c0187a8c40446f8b64532ea01d63e31 |
| hovercard-subject-tag | issue:1340040061 |
| 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/96021/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4241ced04b968ca8fb2f2d5b07ec2613d31fc9af690df3fe63bd96699c4a7315/python/cpython/issues/96021 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4241ced04b968ca8fb2f2d5b07ec2613d31fc9af690df3fe63bd96699c4a7315/python/cpython/issues/96021 |
| og:image:alt | It looks like in IsolatedAsyncioTestCase when debug() crashes it doesn't teardown the event loop, in addition it seems that if the loop isn't torn down it will happen in __del__ which means thread ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | graingert |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| 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 | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width