mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
GH-129386: Add test.support.reset_code
(GH-129486)
This commit is contained in:
parent
e3eba8ce26
commit
674befbd7b
6 changed files with 22 additions and 9 deletions
|
@ -15,7 +15,7 @@ import types
|
|||
import unittest
|
||||
from test.support import (captured_stdout, requires_debug_ranges,
|
||||
requires_specialization, cpython_only,
|
||||
os_helper, import_helper)
|
||||
os_helper, import_helper, reset_code)
|
||||
from test.support.bytecode_helper import BytecodeTestCase
|
||||
|
||||
|
||||
|
@ -1356,7 +1356,7 @@ class DisTests(DisTestBase):
|
|||
self.code_quicken(f)
|
||||
else:
|
||||
# "copy" the code to un-quicken it:
|
||||
f.__code__ = f.__code__.replace()
|
||||
reset_code(f)
|
||||
for instruction in _unroll_caches_as_Instructions(dis.get_instructions(
|
||||
f, show_caches=True, adaptive=adaptive
|
||||
), show_caches=True):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue