Skip to content

Leak test of test_descr fails Base2 != Base #133122

Open
@nascheme

Description

@nascheme

Bug report

Bug description:

This seems to be caused by GH-133114.

Command to re-produce:

./python -m test -R 3:3 -j12 test_descr

The failure output:

FAIL: test_type_lookup_mro_reference (test.test_descr.MiscTests.test_type_lookup_mro_reference)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-x86_64.refleak/build/Lib/test/test_descr.py", line 5181, in test_type_lookup_mro_reference
    self.assertEqual(X.mykey, 'from Base')
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'from Base2' != 'from Base'
- from Base2
?          -
+ from Base
----------------------------------------------------------------------
Ran 156 tests in 0.829s
FAILED (failures=1, skipped=1, expected failures=2)
test test_descr failed

This appears to be another bug in the type lookup (MRO) cache.

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions