Report ImportErrors in distributed mode.
This commit is contained in:
@@ -33,7 +33,7 @@ class TestDistribution:
|
||||
result = testdir.runpytest(p1, "-n1")
|
||||
assert result.ret == 1
|
||||
result.stdout.fnmatch_lines([
|
||||
"*1 failed*",
|
||||
"E ImportError: No module named __import_of_missing_module",
|
||||
])
|
||||
|
||||
def test_n1_skip(self, testdir):
|
||||
|
||||
@@ -285,8 +285,7 @@ class DSession:
|
||||
self._handlefailures(rep)
|
||||
|
||||
def slave_collectreport(self, node, rep):
|
||||
#self.report_line("collectreport %s: %s" %(rep.id, rep.status))
|
||||
#rep.node = node
|
||||
self.config.hook.pytest_collectreport(report=rep)
|
||||
self._handlefailures(rep)
|
||||
|
||||
def _handlefailures(self, rep):
|
||||
|
||||
Reference in New Issue
Block a user