Skip to content

Commit

Permalink
tests/test_ansi2html.py: use sys.executable instead of hardcoded python3
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Kastl committed May 9, 2023
1 parent 1057ee6 commit 51e758d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_ansi2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

import sys
import textwrap
from io import StringIO
from os.path import abspath, dirname, join
Expand Down Expand Up @@ -497,5 +498,5 @@ def test_command_input_output_encoding(self) -> None:
assert process.returncode == 0

def test_command_module(self) -> None:
result = run(["python3", "-m", "ansi2html", "--version"], check=True)
result = run([sys.executable, "-m", "ansi2html", "--version"], check=True)
assert result.returncode == 0

0 comments on commit 51e758d

Please sign in to comment.