Title: Add additional test coverage for lazy imports · Issue #150565 · python/cpython · GitHub
Open Graph Title: Add additional test coverage for lazy imports · Issue #150565 · python/cpython
X Title: Add additional test coverage for lazy imports · Issue #150565 · python/cpython
Description: We have a bunch of lazy imports tests in facebookincubator/cinder that we've carried for the PEP 690 implementation. I've identified a gap between the Cinder lazy imports test suite and the tests we added for PEP 810. I'd like to port so...
Open Graph Description: We have a bunch of lazy imports tests in facebookincubator/cinder that we've carried for the PEP 690 implementation. I've identified a gap between the Cinder lazy imports test suite and the tests w...
X Description: We have a bunch of lazy imports tests in facebookincubator/cinder that we've carried for the PEP 690 implementation. I've identified a gap between the Cinder lazy imports test suite and the...
Opengraph URL: https://github.com/python/cpython/issues/150565
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add additional test coverage for lazy imports","articleBody":"We have a bunch of lazy imports tests in [facebookincubator/cinder](https://github.com/facebookincubator/cinder) that we've carried for the PEP 690 implementation. I've identified a gap between the Cinder lazy imports test suite and the tests we added for PEP 810. I'd like to port some of those tests over to increase coverage. \n\nSpecific coverage areas to tackle:\n- Dict operations with lazy values (copy, |, update, values/items)\n- Attribute side effects (submodule imports don't overwrite parent attrs)\n- Module/variable name collisions (submodule vs variable ordering)\n- Deleted module reimport (sys.modules deletion and reimport)\n- Circular import resolution (lazy imports breaking circular deadlocks)\n- Custom `__import__` via `exec` with lazy imports\n- Dict mutation during module loading\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-149739\n* gh-158614\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/brittanyrey","@type":"Person","name":"brittanyrey"},"datePublished":"2026-05-28T19:37:06Z","url":"https://github.com/python/cpython/issues/150565"}
| 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:40271025-1027-d4b8-016d-390d1642f171 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDAC:EA06E:3D528AC:4DE2FBC:6B01F24A |
| html-safe-nonce | d8eea028d2b309e17f67061bda55caedeb565eba72a073db4fe0f6a995fe19dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREFDOkVBMDZFOjNENTI4QUM6NERFMkZCQzo2QjAxRjI0QSIsInZpc2l0b3JfaWQiOiIxMTU0Mzg2MjEwNTA5MTU2OTM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 268e3e1bc98f2fe93d31159ad20166e3b2511534808ddd67046f6235403d9733 |
| hovercard-subject-tag | issue:4543245881 |
| 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/150565/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb905bbf08720b1e8ae32ea0bf0eea03504da6f296fd9d1cf02c8b1f8a5c3e3d/python/cpython/issues/150565 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb905bbf08720b1e8ae32ea0bf0eea03504da6f296fd9d1cf02c8b1f8a5c3e3d/python/cpython/issues/150565 |
| og:image:alt | We have a bunch of lazy imports tests in facebookincubator/cinder that we've carried for the PEP 690 implementation. I've identified a gap between the Cinder lazy imports test suite and the tests w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brittanyrey |
| 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