mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 22:11:14 +02:00
Remove '\n' from for version strings for test_parse_arguments test.
This commit is contained in:
1 parent
ef23e74e9c
commit
438b1c056c
1 file changed
+2
-2
+2
-2
@@ -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"])
|
||||
|
||||
Reference in new issue
Block a user