Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_tkinter fails on refleak run due to support confusion #105077

Closed
zware opened this issue May 30, 2023 · 1 comment
Closed

test_tkinter fails on refleak run due to support confusion #105077

zware opened this issue May 30, 2023 · 1 comment
Assignees
Labels
type-bug An unexpected behavior, bug, or error

Comments

@zware
Copy link
Member

zware commented May 30, 2023

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 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.

Your environment

  • CPython versions tested on: main, 3.12
  • Operating system and architecture: Windows, Linux, any other

Linked PRs

@zware zware added the type-bug An unexpected behavior, bug, or error label May 30, 2023
@zware zware self-assigned this May 30, 2023
zware added a commit to zware/cpython that referenced this issue May 30, 2023
Use specific symbols from `test.support` to avoid having `support`
overwritten by `test_tkinter`'s own `support` submodule.
zware added a commit that referenced this issue May 30, 2023
Use specific symbols from `test.support` to avoid having `support`
overwritten by `test_tkinter`'s own `support` submodule.
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 30, 2023
Use specific symbols from `test.support` to avoid having `support`
overwritten by `test_tkinter`'s own `support` submodule.
(cherry picked from commit 5454db4)

Co-authored-by: Zachary Ware <zach@python.org>
zware pushed a commit that referenced this issue May 30, 2023
…05079)

Use specific symbols from `test.support` to avoid having `support`
overwritten by `test_tkinter`'s own `support` submodule.
(cherry picked from commit 5454db4)
@erlend-aasland
Copy link
Contributor

Resolved by:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants