]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-133122: Fix for test_type_lookup_mro_reference. (gh-133127)
authorNeil Schemenauer <nas-github@arctrix.com>
Tue, 29 Apr 2025 03:33:13 +0000 (20:33 -0700)
committerGitHub <noreply@github.com>
Tue, 29 Apr 2025 03:33:13 +0000 (03:33 +0000)
commit64dcbb0c31adb068570725003fd6d2ddd8ee1507
treed7511ec2d476071ed18f58d2772d769f2a6903d9
parentca46ec85f8c3cc5a9ae098c5b8fce435ba13c30e
[3.13] gh-133122: Fix for test_type_lookup_mro_reference. (gh-133127)

Change the unit test case to use `getattr()` so that we avoid the
bytecode specializer optimizing the access.  The specializer will call
the `__eq__` method before the unit test expects, causing it to fail.

In the 3.14 branch (gh-128164) the test is changed in a different way
to avoid the same issue.
Lib/test/test_descr.py