| 87 | self.raise_exc("__repr__") |
| 88 | |
| 89 | class BrokenObj: |
| 90 | def __init__(self, exc): |
| 91 | self.exc = exc |
| 92 | |
| 93 | def __repr__(self): |
| 94 | raise self.exc |
| 95 | |
| 96 | __str__ = __repr__ |
| 97 | |
| 98 | baseexc_str = BaseException("__str__") |
| 99 | obj = BrokenObj(RaisingOnStrRepr([BaseException])) |
no outgoing calls