(self)
| 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 | |
| 259 | def _warn_incompatibility_with_xunit2( |