Skip to content

Commit f1d3878

Browse files
Fix test_embed when "python3" isn't on $PATH.
1 parent fc7a72f commit f1d3878

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_embed.py

+2
Original file line numberDiff line numberDiff line change
@@ -1268,6 +1268,8 @@ def test_init_setpythonhome(self):
12681268
'stdlib_dir': stdlib,
12691269
}
12701270
self.default_program_name(config)
1271+
if not config['executable']:
1272+
config['use_frozen_modules'] = -1
12711273
env = {'TESTHOME': home, 'PYTHONPATH': paths_str}
12721274
self.check_all_configs("test_init_setpythonhome", config,
12731275
api=API_COMPAT, env=env)

0 commit comments

Comments
 (0)