From 438b1c056c226e8bdefa1ba08068e5e96cfae84d Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 16 Jun 2020 19:16:05 +0930 Subject: [PATCH] Remove '\n' from for version strings for test_parse_arguments test. --- tests/test_run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"])