Skip to content

Commit 7919ac7

Browse files
committed
use samepath instead of comparing strings
1 parent 75e9005 commit 7919ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_venv_finder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def test_found_parent(with_venvs, this_python, this_venv):
156156

157157
# We found the base env that created this python, all details match
158158
parent = venv_ex.get_parent_install()
159-
assert os.path.dirname(parent.executable) == os.path.dirname(this_python.executable)
159+
assert os.path.samefile(parent.executable, this_python.executable)
160160

161161
# venvs created by the venv module don't record prerelease details in the version
162162
# That's not my fault that's venv!

0 commit comments

Comments
 (0)