Skip to content

Commit

Permalink
Refactor(tasks): no error with NO_TESTS_COLLECTED in all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swapneelap committed May 21, 2022
1 parent 02f144f commit ad067ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks.py
Expand Up @@ -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)

Expand Down

0 comments on commit ad067ee

Please sign in to comment.