diff options
| author | Mark Shannon <mark@hotpy.org> | 2021-08-10 14:53:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-10 14:53:05 +0100 |
| commit | 9816777861a3f19ea9faa5b98c9b7024f13c6b73 (patch) | |
| tree | de8ab8ed96d053fb5dcc1ac70fee634941892c74 /Lib/test/test__opcode.py | |
| parent | c7ea1e3dcea6fbc9842463ce2b785b43501b1eaa (diff) | |
| download | cpython-git-9816777861a3f19ea9faa5b98c9b7024f13c6b73.tar.gz | |
Classify specialization failures. Provides more useful stats, with lower overhead. (GH-27701)
Diffstat (limited to 'Lib/test/test__opcode.py')
| -rw-r--r-- | Lib/test/test__opcode.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test__opcode.py b/Lib/test/test__opcode.py index 928198ae12..f6d8c73064 100644 --- a/Lib/test/test__opcode.py +++ b/Lib/test/test__opcode.py @@ -85,9 +85,8 @@ class SpecializationStatsTests(unittest.TestCase): stat_names + ['fails']) for sn in stat_names: self.assertIsInstance(stats['load_attr'][sn], int) - self.assertIsInstance(stats['load_attr']['fails'], dict) - for k,v in stats['load_attr']['fails'].items(): - self.assertIsInstance(k, tuple) + self.assertIsInstance(stats['load_attr']['specialization_failure_kinds'], tuple) + for v in stats['load_attr']['specialization_failure_kinds']: self.assertIsInstance(v, int) |
