Fix handling of skipped modules with pytest.skip at module level

Fix #332
This commit is contained in:
Bruno Oliveira
2018-11-10 14:14:04 -02:00
parent d40d47acd9
commit 3292e0ede0
4 changed files with 13 additions and 10 deletions

View File

@@ -110,8 +110,8 @@ class WorkerInteractor(object):
self.sendevent("testreport", data=data)
def pytest_collectreport(self, report):
# master only needs reports that failed, as optimization send only them instead (#330)
if report.failed:
# send only reports that have not passed to master as optimization (#330)
if not report.passed:
data = serialize_report(report)
self.sendevent("collectreport", data=data)