mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-18 20:37:57 +00:00
Try to fix capsys issue with Python 3.8 (second try)
This commit is contained in:
parent
241caa1ec7
commit
7fb554135f
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user