diff --git a/tests/test_functional.py b/tests/test_functional.py index 030984d82cb780c4e50c441e8e72fd1f5fb6f100..4dc57a8a9a0a5648856a80e507a868826a00280d 100644 --- a/tests/test_functional.py +++ b/tests/test_functional.py @@ -333,7 +333,7 @@ def test_main(tmpdir, capsys): "30", "-m", "10", "-p", "4", "-b", "-t", str(h_file)]): FindRecombinationsAmongGenomes.main() - assert pytest_wrapped_e.type == SystemExit + assert pytest_wrapped_e.value.code == 1 # Error output captured = capsys.readouterr() assert "File error: enable to understand type of file {} "\