20 lines
669 B
Diff
20 lines
669 B
Diff
|
--- a/tests/test_pipx.py
|
||
|
+++ b/tests/test_pipx.py
|
||
|
@@ -12,6 +12,7 @@ from pipx.util import WINDOWS
|
||
|
|
||
|
|
||
|
PIPX_PATH = CURDIR = Path(__file__).parent.parent
|
||
|
+PYVER_DOT = '.'.join([str(x) for x in sys.version_info[:2]])
|
||
|
|
||
|
assert not hasattr(sys, "real_prefix"), "Tests cannot run under virtualenv"
|
||
|
assert getattr(sys, "base_prefix", sys.prefix) != sys.prefix, "Tests require venv"
|
||
|
@@ -42,7 +43,7 @@ class TestPipxCommands(unittest.TestCase
|
||
|
if WINDOWS:
|
||
|
pipx_bin = "pipx.exe"
|
||
|
else:
|
||
|
- pipx_bin = "pipx"
|
||
|
+ pipx_bin = "pipx-{}".format(PYVER_DOT)
|
||
|
|
||
|
self.assertTrue(which(pipx_bin))
|
||
|
self.pipx_bin = pipx_bin
|