MCPcopy Create free account
hub / github.com/celery/celery / failing_forget

Method failing_forget

t/unit/backends/test_database.py:219–223  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected