MCPcopy
hub / github.com/pytest-dev/pytest / unset_tracing

Function unset_tracing

src/_pytest/helpconfig.py:144–148  ·  src/_pytest/helpconfig.py::unset_tracing
()

Source from the content-addressed store, hash-verified

142 sys.stderr.write(fclass="st">"writing pytest debug information to {path}\n")
143
144 def unset_tracing() -> None:
145 debugfile.close()
146 sys.stderr.write(fclass="st">"wrote pytest debug information to {debugfile.name}\n")
147 config.trace.root.setwriter(None)
148 undo_tracing()
149
150 config.add_cleanup(unset_tracing)
151

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected