MCPcopy Create free account
hub / github.com/pytest-dev/pytest / do_continue

Method do_continue

src/_pytest/debugging.py:166–191  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

164 return ret
165
166 def do_continue(self, arg):
167 ret = super().do_continue(arg)
168 if cls._recursive_debug == 0:
169 assert cls._config is not None
170 tw = _pytest.config.create_terminal_writer(cls._config)
171 tw.line()
172
173 capman = self._pytest_capman
174 capturing = pytestPDB._is_capturing(capman)
175 if capturing:
176 if capturing == "global":
177 tw.sep(">", "PDB continue (IO-capturing resumed)")
178 else:
179 tw.sep(
180 ">",
181 "PDB continue (IO-capturing resumed for %s)"
182 % capturing,
183 )
184 assert capman is not None
185 capman.resume()
186 else:
187 tw.sep(">", "PDB continue")
188 assert cls._pluginmanager is not None
189 cls._pluginmanager.hook.pytest_leave_pdb(config=cls._config, pdb=self)
190 self._continued = True
191 return ret
192
193 do_c = do_cont = do_continue
194

Callers

nothing calls this directly

Calls 4

_is_capturingMethod · 0.80
lineMethod · 0.45
sepMethod · 0.45
resumeMethod · 0.45

Tested by

no test coverage detected