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