From 51e758d89f33714305ccc03af065b4c06a25dc96 Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Tue, 9 May 2023 14:34:51 +0200 Subject: [PATCH] tests/test_ansi2html.py: use sys.executable instead of hardcoded python3 fixes #210 --- tests/test_ansi2html.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_ansi2html.py b/tests/test_ansi2html.py index 8256f0f..8e2b852 100644 --- a/tests/test_ansi2html.py +++ b/tests/test_ansi2html.py @@ -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 @@ -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