Skip to content
Prev Previous commit
Use correct executable path
  • Loading branch information
ncoghlan authored Mar 25, 2018
commit 79ebd1746ca58629ce4f56f1b27b422b3ecea58a
2 changes: 1 addition & 1 deletion Lib/test/test_embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def test_pre_initialization_api(self):
env = dict(os.environ, PYTHONPATH=os.pathsep.join(sys.path))
out, err = self.run_embedded_interpreter("pre_initialization_api", env=env)
if sys.platform == "win32":
expected_path = sys.executable
expected_path = self.test_exe
else:
expected_path = os.path.join(os.getcwd(), "spam")
expected_output = f"sys.executable: {expected_path}\n"
Expand Down