mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-126255: Ignore warning about JIT being deactivated when perf support is active in test_embed.InitConfigTests.test_initconfig_api (#126302)
Temporarily ignore warnings about JIT deactivation when perf support is active. This will be reverted as soon as a way is found to determine at run time whether the interpreter was built with JIT. Currently, this is not possible on Windows. Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
This commit is contained in:
parent
8477951a1c
commit
f0c6fccd08
4 changed files with 14 additions and 5 deletions
|
|
@ -210,14 +210,14 @@ class TestPerfTrampoline(unittest.TestCase):
|
|||
sys.activate_stack_trampoline("perf")
|
||||
sys.activate_stack_trampoline("perf")
|
||||
"""
|
||||
assert_python_ok("-c", code)
|
||||
assert_python_ok("-c", code, PYTHON_JIT="0")
|
||||
|
||||
def test_sys_api_with_invalid_trampoline(self):
|
||||
code = """if 1:
|
||||
import sys
|
||||
sys.activate_stack_trampoline("invalid")
|
||||
"""
|
||||
rc, out, err = assert_python_failure("-c", code)
|
||||
rc, out, err = assert_python_failure("-c", code, PYTHON_JIT="0")
|
||||
self.assertIn("invalid backend: invalid", err.decode())
|
||||
|
||||
def test_sys_api_get_status(self):
|
||||
|
|
@ -228,7 +228,7 @@ class TestPerfTrampoline(unittest.TestCase):
|
|||
sys.deactivate_stack_trampoline()
|
||||
assert sys.is_stack_trampoline_active() is False
|
||||
"""
|
||||
assert_python_ok("-c", code)
|
||||
assert_python_ok("-c", code, PYTHON_JIT="0")
|
||||
|
||||
|
||||
def is_unwinding_reliable_with_frame_pointers():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue