diff options
author | Mark Shannon <mark@hotpy.org> | 2021-08-10 13:53:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 13:53:05 (GMT) |
commit | 9816777861a3f19ea9faa5b98c9b7024f13c6b73 (patch) | |
tree | de8ab8ed96d053fb5dcc1ac70fee634941892c74 /Lib | |
parent | c7ea1e3dcea6fbc9842463ce2b785b43501b1eaa (diff) | |
download | cpython-9816777861a3f19ea9faa5b98c9b7024f13c6b73.zip cpython-9816777861a3f19ea9faa5b98c9b7024f13c6b73.tar.gz cpython-9816777861a3f19ea9faa5b98c9b7024f13c6b73.tar.bz2 |
Classify specialization failures. Provides more useful stats, with lower overhead. (GH-27701)
Diffstat (limited to 'Lib')
-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 928198a..f6d8c73 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) |