[svn r55053] also allow using pdb in failures of the collection process

--HG--
branch : trunk
This commit is contained in:
hpk 2008-05-21 11:54:33 +02:00
parent 4fce886def
commit 671f6a4660
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,8 @@ def itemgen(session, colitems, reporter, keyword=None):
reporter(repevent.SkippedTryiter(excinfo, next)) reporter(repevent.SkippedTryiter(excinfo, next))
else: else:
reporter(repevent.FailedTryiter(excinfo, next)) reporter(repevent.FailedTryiter(excinfo, next))
if session.config.option.usepdb:
py.__.test.custompdb.post_mortem(excinfo._excinfo[2])
if reporter: if reporter:
reporter(repevent.ItemFinish(next)) reporter(repevent.ItemFinish(next))