(*args, **kwargs)
| 217 | call_count = [0] |
| 218 | |
| 219 | def failing_forget(*args, **kwargs): |
| 220 | call_count[0] += 1 |
| 221 | if call_count[0] == 1: |
| 222 | raise DatabaseError("temporary error", None, None) |
| 223 | return original_forget(*args, **kwargs) |
| 224 | |
| 225 | tb._forget = failing_forget |
| 226 |
nothing calls this directly
no outgoing calls
no test coverage detected