Title: `test_concurrent_lazy_import_reification` is flaky · Issue #154561 · python/cpython · GitHub
Open Graph Title: `test_concurrent_lazy_import_reification` is flaky · Issue #154561 · python/cpython
X Title: `test_concurrent_lazy_import_reification` is flaky · Issue #154561 · python/cpython
Description: Bug report Bug description: See for example, this run: ====================================================================== FAIL: test_concurrent_lazy_import_reification (test.test_lazy_import.ThreadSafetyTests.test_concurrent_lazy_imp...
Open Graph Description: Bug report Bug description: See for example, this run: ====================================================================== FAIL: test_concurrent_lazy_import_reification (test.test_lazy_import.Th...
X Description: Bug report Bug description: See for example, this run: ====================================================================== FAIL: test_concurrent_lazy_import_reification (test.test_lazy_import.Th...
Opengraph URL: https://github.com/python/cpython/issues/154561
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_concurrent_lazy_import_reification` is flaky","articleBody":"# Bug report\n\n### Bug description:\n\nSee for example, this [run](https://buildbot.python.org/#/builders/2248/builds/67):\n\n```\n\n======================================================================\nFAIL: test_concurrent_lazy_import_reification (test.test_lazy_import.ThreadSafetyTests.test_concurrent_lazy_import_reification)\nMultiple threads racing to reify the same lazy import should succeed.\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/var/lib/buildbot/workers/rise-riscv64-3/3.x.rise-riscv64-3.nogil/build/Lib/test/test_lazy_import/__init__.py\", line 1820, in test_concurrent_lazy_import_reification\n self.assertEqual(errors, [], f\"Errors occurred: {errors}\")\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: Lists differ: [(9, AttributeError(\"module 'test.test_laz[39 chars]'\"))] != []\n\nFirst list contains 1 additional elements.\nFirst extra element 0:\n(9, AttributeError(\"module 'test.test_lazy_import.data' has no attribute 'basic2'\"))\n\n+ []\n- [(9,\n- AttributeError(\"module 'test.test_lazy_import.data' has no attribute 'basic2'\"))] : Errors occurred: [(9, AttributeError(\"module 'test.test_lazy_import.data' has no attribute 'basic2'\"))]\n\n----------------------------------------------------------------------\nRan 128 tests in 78.334s\n\nFAILED (failures=1)\ntest test_lazy_import failed\n```\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-154742\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/StanFromIreland","@type":"Person","name":"StanFromIreland"},"datePublished":"2026-07-23T19:46:28Z","url":"https://github.com/python/cpython/issues/154561"}
| 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:d6216db2-2a9a-1f46-44bc-5c6c155cfbc5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B876:2AF0D8:381991:45F022:6B01FA42 |
| html-safe-nonce | b14a682f4f5b84d1e9f0315527eac51bf6bd819741104ca22fbb5d0eb5fdb034 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODc2OjJBRjBEODozODE5OTE6NDVGMDIyOjZCMDFGQTQyIiwidmlzaXRvcl9pZCI6IjM4NjI2NTg2NTc0MDE1Njc4MTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 378a554363a932cb81405de88c2dcd13581b3f39ba00f9b58f4e4c0b290ff665 |
| hovercard-subject-tag | issue:4962327898 |
| 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/154561/issue_layout |
| twitter:image | https://opengraph.githubassets.com/766a64a4be46dc173e974e596d32ea37a6ea8bf774da61400be8928aaecfbf03/python/cpython/issues/154561 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/766a64a4be46dc173e974e596d32ea37a6ea8bf774da61400be8928aaecfbf03/python/cpython/issues/154561 |
| og:image:alt | Bug report Bug description: See for example, this run: ====================================================================== FAIL: test_concurrent_lazy_import_reification (test.test_lazy_import.Th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | StanFromIreland |
| 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