1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-23 23:38:21 +00:00

Try to fix capsys issue with Python 3.8 (second try)

This commit is contained in:
grossmj 2020-06-16 21:11:29 +09:30
parent 241caa1ec7
commit 7fb554135f

View File

@ -51,12 +51,11 @@ def test_parse_arguments(capsys, tmpdir):
with pytest.raises(SystemExit):
run.parse_arguments(["-v"])
out, _ = capsys.readouterr()
assert __version__ in "{}".format(out.strip()) # Depending of the Python version the location of the version change
assert __version__ in out
with pytest.raises(SystemExit):
run.parse_arguments(["--version"])
out, _ = capsys.readouterr()
assert __version__ in "{}".format(out.strip()) # Depending of the Python version the location of the version change
assert __version__ in out
with pytest.raises(SystemExit):
run.parse_arguments(["-h"])