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 Mar 26, 2018
1 parent 26106c1 commit 6e61615
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions _pytest/debugging.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,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 6e61615

Please sign in to comment.