Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.13] gh-133122: Fix for test_type_lookup_mro_reference.#133127

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

nascheme
Copy link
Member

@naschemenascheme commentedApr 29, 2025
edited by bedevere-appbot
Loading

Change the unit test case to usegetattr() 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.

@naschemenascheme added testsTests in the Lib/test dir 3.13bugs and security fixes labelsApr 29, 2025
Change the unit test case to use `getattr()` so that we avoid thebytecode specializer optimizing the access.  The specializer will callthe `__eq__` method before the unit test expects, causing it to fail.In the 3.14 branch (pythongh-128164) the test is changed in a different wayto avoid the same issue.
@naschemenaschemeforce-pushed thegh-132942-tp-mro-no-specialize branch fromf56453a to36a74b9CompareApril 29, 2025 03:08
@naschemenaschemeenabled auto-merge (squash)April 29, 2025 03:09
@naschemenascheme merged commit64dcbb0 intopython:3.13Apr 29, 2025
36 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@markshannonmarkshannonAwaiting requested review from markshannon

Assignees
No one assigned
Labels
3.13bugs and security fixesskip newstestsTests in the Lib/test dir
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@nascheme

[8]ページ先頭

©2009-2025 Movatter.jp