From: Yongtao Huang Date: Thu, 29 Jan 2026 17:08:14 +0000 (+0800) Subject: Test: fix stale uops usage in `test_capi/test_opt.py` (GH-144239) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14c5339a389a1161da4521d4c41236acb448baad;p=thirdparty%2FPython%2Fcpython.git Test: fix stale uops usage in `test_capi/test_opt.py` (GH-144239) Signed-off-by: Yongtao Huang --- diff --git a/Lib/test/test_capi/test_opt.py b/Lib/test/test_capi/test_opt.py index 7808700f6a23..a379d1be2f9b 100644 --- a/Lib/test/test_capi/test_opt.py +++ b/Lib/test/test_capi/test_opt.py @@ -3750,6 +3750,7 @@ class TestUopsOptimization(unittest.TestCase): res, ex = self._run_with_optimizer(test_is_none, TIER2_THRESHOLD) self.assertEqual(res, True) self.assertIsNotNone(ex) + uops = get_opnames(ex) self.assertIn("_IS_OP", uops) self.assertIn("_POP_TOP_NOP", uops)