mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
GH-133231: Add JIT utilities in sys._jit (GH-133233)
This commit is contained in:
parent
f9b22bb79d
commit
b1aa515bd6
11 changed files with 296 additions and 54 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue