From 417c7290754b5deefae307a80422dcbc989d9f43 Mon Sep 17 00:00:00 2001
From: Nico Maillet <nicolas.maillet@pasteur.fr>
Date: Tue, 2 Feb 2021 19:39:39 +0100
Subject: [PATCH] Modify assertion to controle exit code and not type

---
 tests/test_functional.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_functional.py b/tests/test_functional.py
index 030984d..4dc57a8 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 {} "\
-- 
GitLab