]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Test: fix stale uops usage in `test_capi/test_opt.py` (GH-144239)
authorYongtao Huang <yongtaoh2022@gmail.com>
Thu, 29 Jan 2026 17:08:14 +0000 (01:08 +0800)
committerGitHub <noreply@github.com>
Thu, 29 Jan 2026 17:08:14 +0000 (17:08 +0000)
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
Lib/test/test_capi/test_opt.py

index 7808700f6a234611e860dc3916a68b54b9868bed..a379d1be2f9bd3f71565253f314c2f86f02b5cd1 100644 (file)
@@ -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)