Skip to content

Commit 9972a82

Browse files
authored
test_sequential: resolve() the system_executable (#2751)
When the _base_executable is a hardlink (macOS homebrew), then the virtualenv `PythonInfo.current_system()` call might not return the same path as tox's PythonInfo.interpreter, even though they would be pointing to the same file. fix issue #2720
1 parent 968ea7d commit 9972a82

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/changelog/2720.bugfix.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix assertion in ``test_result_json_sequential`` when interpreter
2+
``_base_executable`` is a hardlink (macOS homebrew) - by user:`masenf`

tests/session/cmd/test_sequential.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_result_json_sequential(
7070

7171
py_info = PythonInfo.current_system()
7272
host_python = {
73-
"executable": py_info.system_executable,
73+
"executable": str(Path(py_info.system_executable).resolve()),
7474
"extra_version_info": None,
7575
"implementation": py_info.implementation,
7676
"is_64": py_info.architecture == 64,

0 commit comments

Comments
 (0)