Skip to content

Commit

Permalink
fixup! pdb: resume capturing after continue
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jul 26, 2017
1 parent ff89643 commit 909b858
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions _pytest/debugging.py
Expand Up @@ -71,6 +71,17 @@ def do_continue(self, arg):
return ret
do_c = do_cont = do_continue

def setup(self, f, tb):
"""Suspend on setup().
Needed after continue resumed, and entering a breakpoint.
Should get skipped on the first call probably."""
ret = super(PytestPdb, self).setup(f, tb)
if not ret:
if self._pytest_capman:
self._pytest_capman.suspendcapture(in_=True)
return ret

_pdb = PytestPdb()
_pdb._pytest_capman = capman
else:
Expand Down

0 comments on commit 909b858

Please sign in to comment.