diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2021-08-11 16:34:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 16:34:01 (GMT) |
commit | 64a7812c170f5d46ef16a1517afddc7cd92c5240 (patch) | |
tree | 3c7dfd04fd56522f535a136c2956149eeb6b4555 /Lib/test/test__opcode.py | |
parent | 08caf2d5d4a9994976e9eafaf345b5a1a4012a81 (diff) | |
download | cpython-64a7812c170f5d46ef16a1517afddc7cd92c5240.zip cpython-64a7812c170f5d46ef16a1517afddc7cd92c5240.tar.gz cpython-64a7812c170f5d46ef16a1517afddc7cd92c5240.tar.bz2 |
Update test__opcode and _Py_GetSpecializationStats with recent specialization stat changes (GH-27728)
Diffstat (limited to 'Lib/test/test__opcode.py')
-rw-r--r-- | Lib/test/test__opcode.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test__opcode.py b/Lib/test/test__opcode.py index f6d8c73..6bbab53 100644 --- a/Lib/test/test__opcode.py +++ b/Lib/test/test__opcode.py @@ -82,10 +82,12 @@ class SpecializationStatsTests(unittest.TestCase): self.assertCountEqual(stats.keys(), specialized_opcodes) self.assertCountEqual( stats['load_attr'].keys(), - stat_names + ['fails']) + stat_names + ['specialization_failure_kinds']) for sn in stat_names: self.assertIsInstance(stats['load_attr'][sn], int) - self.assertIsInstance(stats['load_attr']['specialization_failure_kinds'], tuple) + self.assertIsInstance( + stats['load_attr']['specialization_failure_kinds'], + tuple) for v in stats['load_attr']['specialization_failure_kinds']: self.assertIsInstance(v, int) |