GH-133231: Add JIT utilities in sys._jit (GH-133233)

This commit is contained in:
Brandt Bucher 2025-05-05 15:25:22 -07:00 committed by GitHub
parent f9b22bb79d
commit b1aa515bd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 296 additions and 54 deletions

View file

@ -1336,7 +1336,7 @@ class DisTests(DisTestBase):
# Loop can trigger a quicken where the loop is located
self.code_quicken(loop_test)
got = self.get_disassembly(loop_test, adaptive=True)
jit = import_helper.import_module("_testinternalcapi").jit_enabled()
jit = sys._jit.is_enabled()
expected = dis_loop_test_quickened_code.format("JIT" if jit else "NO_JIT")
self.do_disassembly_compare(got, expected)