Skip to content

Commit f0d6a62

Browse files
committed
[actions] Fix venv/virtualenv tests
1 parent 5e0d7ed commit f0d6a62

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_pythonpackage_basic.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ def test_virtualenv(self):
308308
sys_python_path = self.run__get_system_python_executable(
309309
os.path.join(test_dir, "virtualenv", "bin", "python")
310310
)
311-
assert os.path.normpath(sys_python_path) == os.path.normpath(pybin)
311+
assert os.path.normpath(sys_python_path).startswith(
312+
os.path.normpath(pybin)
313+
)
312314
finally:
313315
shutil.rmtree(test_dir)
314316

@@ -341,6 +343,8 @@ def test_venv(self):
341343
sys_python_path = self.run__get_system_python_executable(
342344
os.path.join(test_dir, "venv", "bin", "python")
343345
)
344-
assert os.path.normpath(sys_python_path) == os.path.normpath(pybin)
346+
assert os.path.normpath(sys_python_path).startswith(
347+
os.path.normpath(pybin)
348+
)
345349
finally:
346350
shutil.rmtree(test_dir)

0 commit comments

Comments
 (0)