Skip to content

Commit 84eae41

Browse files
committed
Test: fix stale uops usage in test_capi:
Recompute uops for `test_is_none` instead of reusing the previous test's value. Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
1 parent 639c1ad commit 84eae41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3750,6 +3750,7 @@ def test_is_none(n):
37503750
res, ex = self._run_with_optimizer(test_is_none, TIER2_THRESHOLD)
37513751
self.assertEqual(res, True)
37523752
self.assertIsNotNone(ex)
3753+
uops = get_opnames(ex)
37533754

37543755
self.assertIn("_IS_OP", uops)
37553756
self.assertIn("_POP_TOP_NOP", uops)

0 commit comments

Comments
 (0)