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

Method finalize

src/_pytest/junitxml.py:251–256  ·  src/_pytest/junitxml.py::_NodeReporter.finalize
(self)

Source from the content-addressed store, hash-verified

249 self.write_captured_output(report)
250
251 def finalize(self) -> None:
252 data = self.to_xml()
253 self.__dict__.clear()
254 class="cm"># Type ignored because mypy doesn't like overriding a method.
255 class="cm"># Also the return value doesn't match...
256 self.to_xml = lambda: data class="cm"># type: ignore[method-assign]
257
258
259def _warn_incompatibility_with_xunit2(

Callers

nothing calls this directly

Calls 2

to_xmlMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected