We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ab76a8 commit 86ab7f1Copy full SHA for 86ab7f1
1 file changed
Lib/test/test_capi/test_opt.py
@@ -1241,14 +1241,8 @@ class Bar:
1241
pass
1242
1243
res, ex = self._run_with_optimizer(thing, Foo())
1244
- opnames = list(iter_opnames(ex))
1245
- self.assertIsNotNone(ex)
1246
- self.assertEqual(res, TIER2_THRESHOLD * 6 + 1)
1247
- call = opnames.index("_CALL_BUILTIN_FAST")
1248
- load_attr_top = opnames.index("_POP_TOP_LOAD_CONST_INLINE_BORROW", 0, call)
1249
- load_attr_bottom = opnames.index("_POP_TOP_LOAD_CONST_INLINE_BORROW", call)
1250
- self.assertEqual(opnames[:load_attr_top].count("_GUARD_TYPE_VERSION"), 1)
1251
- self.assertEqual(opnames[call:load_attr_bottom].count("_CHECK_VALIDITY"), 2)
+ # Cleaned up by the invalidation.
+ self.assertIsNone(ex)
1252
1253
def test_guard_type_version_removed_escaping(self):
1254
0 commit comments