]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix test
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Thu, 23 Oct 2025 01:02:55 +0000 (02:02 +0100)
committerKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Thu, 23 Oct 2025 01:02:55 +0000 (02:02 +0100)
Lib/test/test_sys.py

index 98dd466849e555ed214bc95ebad73afd9545bd2c..c5e50dffb1393890d42616d4f5d9a37a42649f03 100644 (file)
@@ -2255,7 +2255,7 @@ class TestSysJIT(unittest.TestCase):
                 # 1 extra iteration for tracing.
                 for i in range(_testinternalcapi.TIER2_THRESHOLD + 2):
                     # Careful, doing this in the reverse order breaks tracing:
-                    expected = {enabled} and i >= _testinternalcapi.TIER2_THRESHOLD + 1
+                    expected = {enabled} and i >= _testinternalcapi.TIER2_THRESHOLD
                     assert sys._jit.is_active() is expected
                     frame_2_jit(expected)
                     assert sys._jit.is_active() is expected