mirror of
https://github.com/python/cpython.git
synced 2025-09-02 06:57:58 +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
|
@ -1,5 +1,6 @@
|
|||
# Run the tests in Programs/_testembed.c (tests for the CPython embedding APIs)
|
||||
from test import support
|
||||
from test.libregrtest.utils import get_build_info
|
||||
from test.support import import_helper, os_helper, threading_helper, MS_WINDOWS
|
||||
import unittest
|
||||
|
||||
|
@ -1780,8 +1781,10 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'perf_profiling': 2,
|
||||
}
|
||||
config_dev_mode(preconfig, config)
|
||||
# Temporarily enable ignore_stderr=True to ignore warnings on JIT builds
|
||||
# See gh-126255 for more information
|
||||
self.check_all_configs("test_initconfig_api", config, preconfig,
|
||||
api=API_ISOLATED)
|
||||
api=API_ISOLATED, ignore_stderr=True)
|
||||
|
||||
def test_initconfig_get_api(self):
|
||||
self.run_embedded_interpreter("test_initconfig_get_api")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue