From 3019e461b56c8ba82d9b87dfa80079900874b4dc Mon Sep 17 00:00:00 2001 From: Alexandre Garnier Date: Wed, 14 Dec 2022 17:41:09 +0100 Subject: [PATCH] Fix test 'eco' (#2819) * Add diff in test 'eco' to help figure issue * Sanitize venv path in eco test Co-authored-by: Sorin Sbarnea --- test/test_eco.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_eco.py b/test/test_eco.py index 95fd9fea30..f6864f4f05 100644 --- a/test/test_eco.py +++ b/test/test_eco.py @@ -30,6 +30,8 @@ def sanitize_output(text: str) -> str: result = re.sub( r"^WARNING: PATH altered to include.+\n", "", result, flags=re.MULTILINE ) + # replace venv path + result = result.replace(".tox/venv", ".tox/eco") return result @@ -84,5 +86,6 @@ def test_eco(repo: str) -> None: shell=True, check=False, capture_output=True, + text=True, ) - assert result.returncode == 0, result_txt + assert result.returncode == 0, result_txt + f"\nDIFF:\n{result.stdout}"