From ad067ee5e7469fd6507a3ee73021028b77072333 Mon Sep 17 00:00:00 2001 From: swapneelap Date: Sat, 21 May 2022 19:12:58 +0100 Subject: [PATCH] Refactor(tasks): no error with `NO_TESTS_COLLECTED` in all tests --- tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 33765c4..21073e6 100644 --- a/tasks.py +++ b/tasks.py @@ -53,7 +53,7 @@ def all(c): try: cmd(c) except Exit as e: - if e.code != pytest.ExitCode.OK: + if e.code not in {pytest.ExitCode.OK, pytest.ExitCode.NO_TESTS_COLLECTED}: raise e raise Exit(code=pytest.ExitCode.OK)