Skip to content

Commit 491e161

Browse files
woops
1 parent c1a2ba4 commit 491e161

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_embed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,8 +1783,10 @@ def test_initconfig_api(self):
17831783
is_using_jit = "-D_Py_JIT" in (sysconfig.get_config_var('PY_CORE_CFLAGS') or '')
17841784
if is_using_jit:
17851785
stderr = "<sys>:0: RuntimeWarning: JIT deactivated as perf profiling support is active"
1786+
else:
1787+
stderr = ""
17861788
self.check_all_configs("test_initconfig_api", config, preconfig,
1787-
api=API_ISOLATED, env={'PYTHON_JIT': '0'}, stderr=sys.stderr)
1789+
api=API_ISOLATED, env={'PYTHON_JIT': '0'}, stderr=stderr)
17881790

17891791
def test_initconfig_get_api(self):
17901792
self.run_embedded_interpreter("test_initconfig_get_api")

0 commit comments

Comments
 (0)