From 9ec4b054288971221fc8590d91cfec627bb04da4 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Sun, 31 Dec 2023 13:39:18 -0500 Subject: [PATCH] Add prints to test_installed_matches to debug Windows failure --- test/test_cli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test_cli.py b/test/test_cli.py index bb2507b..4bdd821 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -1,3 +1,5 @@ +import os +import pathlib import subprocess import sys from typing import Any @@ -136,8 +138,11 @@ def test_installed_matches(sixs_version, manual_input_file, helpers) -> None: sixs_binary = sixs_bin.get_path(sixs_version) - direct_result = subprocess.run([sixs_binary], **proc_args) + venv_bin_dir = pathlib.Path(sys.executable).parent + print(f"{os.environ.get('PATH')=}") + print(f"{os.environ.get('VIRTUAL_ENV')=}") + direct_result = subprocess.run([sixs_binary], **proc_args) installed_result = subprocess.run([sixs_binary.name], **proc_args) assert direct_result.returncode == installed_result.returncode