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 3d30896 commit 4b238bcCopy full SHA for 4b238bc
1 file changed
Lib/test/test_capi/test_opt.py
@@ -2748,13 +2748,7 @@ def testfunc(n):
2748
self.assertEqual(res, TIER2_THRESHOLD)
2749
self.assertIsNotNone(ex)
2750
uops = get_opnames(ex)
2751
- for uop in uops:
2752
- print(uop)
2753
- return
2754
-
2755
- self.assertIn("_LOAD_ATTR_MODULE", uops)
2756
- self.assertLessEqual(count_ops(ex, "_POP_TOP"), 3)
2757
- self.assertIn("_POP_TOP_NOP", uops)
+ self.assertIn(("_LOAD_ATTR_MODULE", "_POP_TOP_NOP"), itertools.pairwise(uops))
2758
2759
def test_load_attr_with_hint(self):
2760
def testfunc(n):
0 commit comments