Skip to content

Commit 4b238bc

Browse files
committed
Fix tests
1 parent 3d30896 commit 4b238bc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,13 +2748,7 @@ def testfunc(n):
27482748
self.assertEqual(res, TIER2_THRESHOLD)
27492749
self.assertIsNotNone(ex)
27502750
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)
2751+
self.assertIn(("_LOAD_ATTR_MODULE", "_POP_TOP_NOP"), itertools.pairwise(uops))
27582752

27592753
def test_load_attr_with_hint(self):
27602754
def testfunc(n):

0 commit comments

Comments
 (0)