Skip to content

Update test__opcode and _Py_GetSpecializationStats with recent specialization stat changes #27728

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

Merged
merged 4 commits into from
Aug 11, 2021

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Aug 11, 2021

This fixes a couple of recent breaks in the test__opcode.SpecializationStatsTests, which is not enabled on CI yet.

for v in stats['load_attr']['specialization_failure_kinds']:
self.assertIsInstance(v, int)
else:
print('No specialization stats to check')
Copy link
Member

Choose a reason for hiding this comment

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

Personally, I don't like tests that print stuff when they pass.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah. I'll remove that.

Copy link
Member

@Fidget-Spinner Fidget-Spinner left a comment

Choose a reason for hiding this comment

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

Thanks Irit. LGTM.

@iritkatriel iritkatriel merged commit 64a7812 into python:main Aug 11, 2021
@iritkatriel iritkatriel deleted the spec_stats branch August 11, 2021 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants