Get the repr of an expected type/RaisesExc/RaisesGroup, but we only want the name if it's a type
(e: type[BaseException] | AbstractRaises[BaseException])
| 1233 | |
| 1234 | @staticmethod |
| 1235 | def _repr_expected(e: type[BaseException] | AbstractRaises[BaseException]) -> str: |
| 1236 | """Get the repr of an expected type/RaisesExc/RaisesGroup, but we only want |
| 1237 | the name if it's a type""" |
| 1238 | if isinstance(e, type): |
| 1239 | return _exception_type_name(e) |
| 1240 | return repr(e) |
| 1241 | |
| 1242 | @overload |
| 1243 | def _check_exceptions( |
no test coverage detected