Title: `test_tkinter` fails on refleak run due to `support` confusion · Issue #105077 · python/cpython · GitHub
Open Graph Title: `test_tkinter` fails on refleak run due to `support` confusion · Issue #105077 · python/cpython
X Title: `test_tkinter` fails on refleak run due to `support` confusion · Issue #105077 · python/cpython
Description: Bug report When running the refleak test runner (-R), test_tkinter fails on the second run due to AttributeError: module 'test.test_tkinter.support' has no attribute 'load_package_tests'. This is because test_tkinter has its own support ...
Open Graph Description: Bug report When running the refleak test runner (-R), test_tkinter fails on the second run due to AttributeError: module 'test.test_tkinter.support' has no attribute 'load_package_tests'. This is b...
X Description: Bug report When running the refleak test runner (-R), test_tkinter fails on the second run due to AttributeError: module 'test.test_tkinter.support' has no attribute 'load_package_tests...
Opengraph URL: https://github.com/python/cpython/issues/105077
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_tkinter` fails on refleak run due to `support` confusion","articleBody":"# Bug report\r\n\r\nWhen running the refleak test runner (`-R`), `test_tkinter` fails on the second run due to `AttributeError: module 'test.test_tkinter.support' has no attribute 'load_package_tests'`. This is because `test_tkinter` has its own `support` module, which when imported overwrites the `support` attribute set in `Lib/test/test_tkinter/__init__.py`. That module should instead import specific symbols from `test.support` and use them directly.\r\n\r\n# Your environment\r\n\r\n- CPython versions tested on: `main`, `3.12`\r\n- Operating system and architecture: Windows, Linux, any other\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-105078\n* gh-105079\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/zware","@type":"Person","name":"zware"},"datePublished":"2023-05-30T03:22:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/105077/cpython/issues/105077"}
| 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:04e15545-c4dd-6737-5bb7-19b1121bb347 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A96:2E599F:543975:72E5C6:6969DA28 |
| html-safe-nonce | 6cb0ad64a91390d9a0f94409330aaca9258c9b5d57362abc5c5c972b594623ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTk2OjJFNTk5Rjo1NDM5NzU6NzJFNUM2OjY5NjlEQTI4IiwidmlzaXRvcl9pZCI6IjgwMTc2MjQxODAwMzIzOTU4MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 824849e0a819b708dc245767b9b9672bbf0c06d7a7ab9ad13e295c789db482c4 |
| hovercard-subject-tag | issue:1731445362 |
| 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/105077/issue_layout |
| twitter:image | https://opengraph.githubassets.com/64f09c1c703939eedd760fda3f2059c7edfed21d670adb31e1b30d88ee096122/python/cpython/issues/105077 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/64f09c1c703939eedd760fda3f2059c7edfed21d670adb31e1b30d88ee096122/python/cpython/issues/105077 |
| og:image:alt | Bug report When running the refleak test runner (-R), test_tkinter fails on the second run due to AttributeError: module 'test.test_tkinter.support' has no attribute 'load_package_tests'. This is b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zware |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width