Skip to content

Commit 1cb11c0

Browse files
committed
trying to pass local_toolchains
1 parent dc62712 commit 1cb11c0

File tree

1 file changed

+2
-2
lines changed
  • tests/integration/local_toolchains

1 file changed

+2
-2
lines changed

tests/integration/local_toolchains/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_python_from_path_used(self):
1515
# The shim is e.g. /home/user/.pyenv/shims/python3, which then
1616
# runs e.g. /usr/bin/python3
1717
expected = subprocess.check_output(
18-
[shell_path, "-c", "import sys; print(sys.executable)"],
18+
[shell_path, "-c", "import os, sys; print(os.path.realpath(sys._base_executable))"],
1919
text=True,
2020
)
2121
expected = expected.strip().lower()
@@ -27,7 +27,7 @@ def test_python_from_path_used(self):
2727
f"{sys._base_executable=}",
2828
])
2929
# Normalize case: Windows may have case differences
30-
self.assertEqual(expected.lower(), sys.executable.lower(),
30+
self.assertEqual(expected.lower(), sys._base_executable.lower(),
3131
msg = msg)
3232

3333

0 commit comments

Comments
 (0)