Report ImportErrors in distributed mode.

This commit is contained in:
Jonathan Hunt
2013-04-25 18:04:24 -07:00
parent 6038ec21ca
commit 46b94c1c81
2 changed files with 2 additions and 3 deletions

View File

@@ -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):

View File

@@ -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):