| 130 | self.assertEqual(repr(Record(R_AB, (42,))), '<Record a=42>') |
| 131 | |
| 132 | class Key: |
| 133 | def __str__(self): |
| 134 | 1 / 0 |
| 135 | |
| 136 | def __repr__(self): |
| 137 | 1 / 0 |
| 138 | |
| 139 | with self.assertRaises(ZeroDivisionError): |
| 140 | repr(Record({Key(): 0}, (42,))) |
no outgoing calls