| 170 | """ |
| 171 | |
| 172 | class SomeClass: |
| 173 | def __getattribute__(self, attr): |
| 174 | raise RuntimeError |
| 175 | |
| 176 | def __repr__(self): |
| 177 | raise RuntimeError |
| 178 | |
| 179 | assert saferepr(SomeClass()).startswith( |
| 180 | "<[RuntimeError() raised in repr()] SomeClass object at 0x" |
no outgoing calls