Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pythonFiles/testing_tools/adapter/pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ def discover(pytestargs=None, hidestdio=False,
# platform-dependent issues.
with util.hide_stdio() if hidestdio else util.noop_cm():
ec = _pytest_main(pytestargs, [_plugin])
if ec != 0:
# See: https://docs.pytest.org/en/latest/usage.html#possible-exit-codes
if ec == 5:
# No tests were discovered.
pass
elif ec != 0:
raise Exception('pytest discovery failed (exit code {})'.format(ec))
if not _plugin._started:
raise Exception('pytest discovery did not start')
Expand Down
Empty file.
Loading