Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-115999: Move specializer test from test_dis to test_opcache #126498

Merged
merged 3 commits into from
Nov 6, 2024

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Nov 6, 2024

@bedevere-app bedevere-app bot added tests Tests in the Lib/test dir awaiting core review labels Nov 6, 2024
@corona10 corona10 changed the title gh-115999: Move specialier test to test_opcache gh-115999: Move specializer test to test_opcache Nov 6, 2024
@corona10 corona10 changed the title gh-115999: Move specializer test to test_opcache gh-115999: Move specializer test from test_dis to test_opcache Nov 6, 2024
@corona10
Copy link
Member Author

corona10 commented Nov 6, 2024

Motivation: #126450 (comment)

self.assertFalse(3 in b)

f()
self.assert_specialized(f, "CONTAINS_OP_DICT")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, if the opcodes become more complex, we may need to count how many specific opcodes have occurred.

Copy link
Member

@markshannon markshannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

We have a lot of tests in test_dis that need to be moved elsewhere. Every test moved helps.

Copy link
Contributor

@mpage mpage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@corona10 corona10 merged commit e56fd44 into python:main Nov 6, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants