Skip to content

Commit e2b922f

Browse files
authored
Don't assume basename of sys.executable is "python" (#212)
On Debian, it's "python3" instead.
1 parent becb053 commit e2b922f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
def test_module_run():
1313
"""Simple test for no error when running the module. Output is not validated."""
14-
subprocess.check_call([f"{BINDIR}/python", "-m", "trove_classifiers"])
14+
subprocess.check_call([sys.executable, "-m", "trove_classifiers"])
1515

1616

1717
def test_entry_point():
@@ -22,7 +22,7 @@ def test_entry_point():
2222
def test_module_run_is_entry_point():
2323
"""Compare that module run output is the same as entry point output."""
2424
module_run_proc = subprocess.run(
25-
[f"{BINDIR}/python", "-m", "trove_classifiers"],
25+
[sys.executable, "-m", "trove_classifiers"],
2626
capture_output=True,
2727
encoding="utf-8",
2828
)

0 commit comments

Comments
 (0)