Title: [Free Threading] test_importlib fails with "env changed": "Warning -- Unraisable exception" on some buildbots · Issue #162342 · python/cpython · GitHub
Open Graph Title: [Free Threading] test_importlib fails with "env changed": "Warning -- Unraisable exception" on some buildbots · Issue #162342 · python/cpython
X Title: [Free Threading] test_importlib fails with "env changed": "Warning -- Unraisable exception" on some buildbots · Issue #162342 · python/cpython
Description: test_importlib started to fails with "env changed" on: AMD64 CentOS9 NoGIL Refleaks 3.x since https://buildbot.python.org/#/builders/1610/builds/4375 ARM64 MacOS M1 Refleaks NoGIL 3.x: https://buildbot.python.org/#/builders/1368 Example ...
Open Graph Description: test_importlib started to fails with "env changed" on: AMD64 CentOS9 NoGIL Refleaks 3.x since https://buildbot.python.org/#/builders/1610/builds/4375 ARM64 MacOS M1 Refleaks NoGIL 3.x: https://buil...
X Description: test_importlib started to fails with "env changed" on: AMD64 CentOS9 NoGIL Refleaks 3.x since https://buildbot.python.org/#/builders/1610/builds/4375 ARM64 MacOS M1 Refleaks NoGIL 3.x: ht...
Opengraph URL: https://github.com/python/cpython/issues/162342
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Free Threading] test_importlib fails with \"env changed\": \"Warning -- Unraisable exception\" on some buildbots","articleBody":"test_importlib started to fails with \"env changed\" on:\n\n* AMD64 CentOS9 NoGIL Refleaks 3.x since https://buildbot.python.org/#/builders/1610/builds/4375\n* ARM64 MacOS M1 Refleaks NoGIL 3.x: https://buildbot.python.org/#/builders/1368\n\nExample on AMD64 CentOS9 NoGIL Refleaks 3.x: https://buildbot.python.org/#/builders/1610/builds/4375\n\n```\ntest_lazy_self_referential_modules (test.test_importlib.test_lazy.LazyLoaderTests.test_lazy_self_referential_modules) ... ok\ntest_module_already_in_sys (test.test_importlib.test_lazy.LazyLoaderTests.test_module_already_in_sys) ... ok\ntest_module_load_race (test.test_importlib.test_lazy.LazyLoaderTests.test_module_load_race) ... ok\ntest_module_substitution_error (test.test_importlib.test_lazy.LazyLoaderTests.test_module_substitution_error) ... ok\ntest_mutated_attr (test.test_importlib.test_lazy.LazyLoaderTests.test_mutated_attr) ... ok\ntest_mutated_preexisting_attr (test.test_importlib.test_lazy.LazyLoaderTests.test_mutated_preexisting_attr) ... ok\ntest_new_attr (test.test_importlib.test_lazy.LazyLoaderTests.test_new_attr) ... ok\ntest_deadlock (test.test_importlib.test_locks.Frozen_DeadlockAvoidanceTests.test_deadlock) ... Warning -- Unraisable exception\nException ignored while finalizing file \u003c_io.FileIO name='/home/buildbot/buildarea/3.x.itamaro-centos-aws.refleak.nogil/build/Lib/test/test_importlib/metadata/data/example-21.12-py3.6.egg' mode='rb' closefd=True>:\nTraceback (most recent call last):\n File \"/home/buildbot/buildarea/3.x.itamaro-centos-aws.refleak.nogil/build/Lib/test/support/__init__.py\", line 1004, in gc_collect\n gc.collect()\n ~~~~~~~~~~^^\nResourceWarning: unclosed file \u003c_io.FileIO name='/home/buildbot/buildarea/3.x.itamaro-centos-aws.refleak.nogil/build/Lib/test/test_importlib/metadata/data/example-21.12-py3.6.egg' mode='rb' closefd=True>\nWarning -- Unraisable exception\nException ignored while finalizing file \u003c_io.FileIO name='/home/buildbot/buildarea/3.x.itamaro-centos-aws.refleak.nogil/build/Lib/test/test_importlib/metadata/data/example-21.12-py3-none-any.whl' mode='rb' closefd=True>:\nTraceback (most recent call last):\n File \"/home/buildbot/buildarea/3.x.itamaro-centos-aws.refleak.nogil/build/Lib/test/support/__init__.py\", line 1004, in gc_collect\n gc.collect()\n ~~~~~~~~~~^^\nResourceWarning: unclosed file \u003c_io.FileIO name='/home/buildbot/buildarea/3.x.itamaro-centos-aws.refleak.nogil/build/Lib/test/test_importlib/metadata/data/example-21.12-py3-none-any.whl' mode='rb' closefd=True>\nWarning -- Unraisable exception\nException ignored while finalizing file \u003c_io.FileIO name='/home/buildbot/buildarea/3.x.itamaro-centos-aws.refleak.nogil/build/Lib/test/test_importlib/metadata/data/example2-1.0.0-py3-none-any.whl' mode='rb' closefd=True>:\nTraceback (most recent call last):\n File \"/home/buildbot/buildarea/3.x.itamaro-centos-aws.refleak.nogil/build/Lib/test/support/__init__.py\", line 1004, in gc_collect\n gc.collect()\n ~~~~~~~~~~^^\nResourceWarning: unclosed file \u003c_io.FileIO name='/home/buildbot/buildarea/3.x.itamaro-centos-aws.refleak.nogil/build/Lib/test/test_importlib/metadata/data/example2-1.0.0-py3-none-any.whl' mode='rb' closefd=True>\nok\n```\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-162352\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2026-11-21T00:45:29Z","url":"https://github.com/python/cpython/issues/162342"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:dcbd08d5-a905-a7f7-7d66-3411818b7510 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA06:1050BD:1644A49:1D71D63:6B02039F |
| html-safe-nonce | 77900854ff621c2dd6d386acc668f6dbd8649bf5eae786dc1d384b5aad1c7401 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTA2OjEwNTBCRDoxNjQ0QTQ5OjFENzFENjM6NkIwMjAzOUYiLCJ2aXNpdG9yX2lkIjoiMjkzNTMzNTUwMjYzMjU4NDA5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 23fe32da05b4904aa6ba0f52d392a651122b820c81c0d23e8a183c8f9afb553a |
| hovercard-subject-tag | issue:6522348819 |
| 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/162342/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8e12347a04a5b84a082d567f554801c61149384aef1d889924851bf29334cf45/python/cpython/issues/162342 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8e12347a04a5b84a082d567f554801c61149384aef1d889924851bf29334cf45/python/cpython/issues/162342 |
| og:image:alt | test_importlib started to fails with "env changed" on: AMD64 CentOS9 NoGIL Refleaks 3.x since https://buildbot.python.org/#/builders/1610/builds/4375 ARM64 MacOS M1 Refleaks NoGIL 3.x: https://buil... |
| 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 | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width