Remove '\n' from for version strings for test_parse_arguments test.

This commit is contained in:
grossmj 2020-06-16 19:16:05 +09:30
parent ef23e74e9c
commit 438b1c056c

View File

@ -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"])