Skip to content

test_tkinter fails on refleak run due to support confusion #105077

Description

@zware

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

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    on May 30, 2023
  2. self-assigned this
    on May 30, 2023
  3. added 2 commits that reference this issue on May 30, 2023
  4. added a commit that references this issue on May 30, 2023
  5. added a commit that references this issue on May 30, 2023
  6. erlend-aasland commented on May 30, 2023

    @erlend-aasland
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions