Commit f56453a
committed
Fix for test_type_lookup_mro_reference.
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.1 parent c551898 commit f56453a
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5177 | 5177 | | |
5178 | 5178 | | |
5179 | 5179 | | |
| 5180 | + | |
| 5181 | + | |
| 5182 | + | |
| 5183 | + | |
| 5184 | + | |
5180 | 5185 | | |
5181 | | - | |
| 5186 | + | |
5182 | 5187 | | |
5183 | | - | |
| 5188 | + | |
5184 | 5189 | | |
5185 | 5190 | | |
5186 | 5191 | | |
| |||
0 commit comments