Skip to content

Update test__opcode and _Py_GetSpecializationStats with recent specialization stat changes#27728

Merged
iritkatriel merged 4 commits into
python:mainfrom
iritkatriel:spec_stats
Aug 11, 2021
Merged

Update test__opcode and _Py_GetSpecializationStats with recent specialization stat changes#27728
iritkatriel merged 4 commits into
python:mainfrom
iritkatriel:spec_stats

Conversation

@iritkatriel

@iritkatriel iritkatriel commented Aug 11, 2021

Copy link
Copy Markdown
Member

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

Comment thread Lib/test/test__opcode.py Outdated
for v in stats['load_attr']['specialization_failure_kinds']:
self.assertIsInstance(v, int)
else:
print('No specialization stats to check')

Copy link
Copy Markdown
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
Copy Markdown
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.

@Fidget-Spinner Fidget-Spinner left a comment

Copy link
Copy Markdown
Member

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