diff --git a/tests/test_run.py b/tests/test_run.py index ad5a3696a..c15bfb27e 100644 --- a/tests/test_run.py +++ b/tests/test_run.py @@ -51,12 +51,12 @@ def test_parse_arguments(capsys, tmpdir): with pytest.raises(SystemExit): run.parse_arguments(["-v"]) out, err = capsys.readouterr() - assert __version__ in "{}{}".format(out, err) # Depending of the Python version the location of the version change + assert __version__ in "{}{}".format(out.strip(), err.strip()) # Depending of the Python version the location of the version change with pytest.raises(SystemExit): run.parse_arguments(["--version"]) out, err = capsys.readouterr() - assert __version__ in "{}{}".format(out, err) # Depending of the Python version the location of the version change + assert __version__ in "{}{}".format(out.strip(), err.strip()) # Depending of the Python version the location of the version change with pytest.raises(SystemExit): run.parse_arguments(["-h"])