Skip to content
Prev Previous commit
Next Next commit
check _GUARD_NOS_TYPE_VERSION in test
  • Loading branch information
kumaraditya303 committed Apr 8, 2026
commit 902c089486dc19a8f19340da198d43ba4bbe23eb
1 change: 1 addition & 0 deletions Lib/test/test_capi/test_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5040,6 +5040,7 @@ def testfunc(n):
self.assertIsNotNone(ex)
uops = get_opnames(ex)
self.assertNotIn("_LOAD_SUPER_ATTR_METHOD", uops)
self.assertEqual(uops.count("_GUARD_NOS_TYPE_VERSION"), 2)

def global_identity(x):
return x
Expand Down
Loading