Skip to content

Commit f6e6745

Browse files
committed
fix
1 parent 8ed27a0 commit f6e6745

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_embed.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,8 +1780,11 @@ def test_initconfig_api(self):
17801780
'perf_profiling': 2,
17811781
}
17821782
config_dev_mode(preconfig, config)
1783+
is_using_jit = "-D_Py_JIT" in (sysconfig.get_config_var('PY_CORE_CFLAGS') or '')
1784+
if is_using_jit:
1785+
stderr = "<sys>:0: RuntimeWarning: JIT deactivated as perf profiling support is active"
17831786
self.check_all_configs("test_initconfig_api", config, preconfig,
1784-
api=API_ISOLATED, env={'PYTHON_JIT': '0'})
1787+
api=API_ISOLATED, env={'PYTHON_JIT': '0'}, stderr=stderr)
17851788

17861789
def test_initconfig_get_api(self):
17871790
self.run_embedded_interpreter("test_initconfig_get_api")

0 commit comments

Comments
 (0)