From dfa8beddb166e9852606083b0bb4edb215904115 Mon Sep 17 00:00:00 2001 From: "J.P" <70083705+stapmoshun@users.noreply.github.com> Date: Sat, 16 Dec 2023 22:41:06 -0500 Subject: [PATCH] debug verbose test gh runner --- tests/test_verbose.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_verbose.py b/tests/test_verbose.py index 99c4cb3..07a0c46 100644 --- a/tests/test_verbose.py +++ b/tests/test_verbose.py @@ -48,9 +48,6 @@ def test_VERBOSE(self): with io.StringIO() as buf, redirect_stdout(buf): VERBOSE(help) output = buf.getvalue() - import re - output = re.sub(r'\x1b\[[0-9;]*m', '', output) - print (output) assert "help" in output assert "hallo" in output @@ -64,6 +61,10 @@ def test_not_VERBOSE(self): with io.StringIO() as buf, redirect_stdout(buf): VERBOSE(help) output = buf.getvalue() + + import re + output = re.sub(r'\x1b\[[0-9;]*m', '', output) + print (output) variables["verbose"] = 10