fix broken tests / last checkin

--HG--
branch : trunk
This commit is contained in:
holger krekel 2010-10-22 12:04:50 +02:00
parent 1999180dfd
commit c2c8471f3d
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class Session(object):
self.collection = Collection(config) # XXX move elswehre
def pytest_runtest_logreport(self, report):
if report.failed and 'xfail' not in report.keywords:
if report.failed and 'xfail' not in getattr(report, 'keywords', []):
self._testsfailed += 1
maxfail = self.config.getvalue("maxfail")
if maxfail and self._testsfailed >= maxfail: