Skip to content

Commit

Permalink
Use sys.executable for more reliable correct python executable
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi authored Apr 29, 2024
1 parent 7509d59 commit 77778c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
import subprocess
import sys
import itertools as it
from click.testing import CliRunner

Expand Down Expand Up @@ -42,7 +43,7 @@ def test_cli_output(runner, checklist, tmpdir, test_format_configs, arg):
@pytest.mark.parametrize(
"call,format",
it.product(
[["deon"], ["python", "-m", "deon"]],
[["deon"], [sys.executable, "-m", "deon"]],
["ascii", "html", "jupyter", "markdown", "rmarkdown", "rst"],
),
)
Expand Down

0 comments on commit 77778c3

Please sign in to comment.