Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal committed Oct 30, 2024
1 parent 8ed27a0 commit f6e6745
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/test/test_embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -1780,8 +1780,11 @@ def test_initconfig_api(self):
'perf_profiling': 2,
}
config_dev_mode(preconfig, config)
is_using_jit = "-D_Py_JIT" in (sysconfig.get_config_var('PY_CORE_CFLAGS') or '')
if is_using_jit:
stderr = "<sys>:0: RuntimeWarning: JIT deactivated as perf profiling support is active"
self.check_all_configs("test_initconfig_api", config, preconfig,
api=API_ISOLATED, env={'PYTHON_JIT': '0'})
api=API_ISOLATED, env={'PYTHON_JIT': '0'}, stderr=stderr)

def test_initconfig_get_api(self):
self.run_embedded_interpreter("test_initconfig_get_api")
Expand Down

0 comments on commit f6e6745

Please sign in to comment.