(self)
| 1252 | themselves to a terminal.""" |
| 1253 | |
| 1254 | def __str__(self) -> str: |
| 1255 | # FYI this is called from pytest-xdist's serialization of exception |
| 1256 | # information. |
| 1257 | io = StringIO() |
| 1258 | tw = TerminalWriter(file=io) |
| 1259 | self.toterminal(tw) |
| 1260 | return io.getvalue().strip() |
| 1261 | |
| 1262 | def __repr__(self) -> str: |
| 1263 | return f"<{self.__class__} instance at {id(self):0x}>" |
nothing calls this directly
no test coverage detected