From 671f6a46601e408c54ac0f4f06d09db31e0e3663 Mon Sep 17 00:00:00 2001 From: hpk Date: Wed, 21 May 2008 11:54:33 +0200 Subject: [PATCH] [svn r55053] also allow using pdb in failures of the collection process --HG-- branch : trunk --- py/test/session.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/test/session.py b/py/test/session.py index 9322f04bc..18c917f3b 100644 --- a/py/test/session.py +++ b/py/test/session.py @@ -52,6 +52,8 @@ def itemgen(session, colitems, reporter, keyword=None): reporter(repevent.SkippedTryiter(excinfo, next)) else: reporter(repevent.FailedTryiter(excinfo, next)) + if session.config.option.usepdb: + py.__.test.custompdb.post_mortem(excinfo._excinfo[2]) if reporter: reporter(repevent.ItemFinish(next))