MCPcopy Create free account
hub / github.com/python-arq/arq / Foobar

Class Foobar

tests/test_main.py:221–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219
220async def test_cant_pickle_arg(arq_redis: ArqRedis):
221 class Foobar:
222 def __getstate__(self):
223 raise TypeError("this doesn't pickle")
224
225 with pytest.raises(SerializationError, match='unable to serialize job "foobar"'):
226 await arq_redis.enqueue_job('foobar', Foobar())

Callers 2

test_cant_pickle_argFunction · 0.70
foobarFunction · 0.70

Calls

no outgoing calls

Tested by 2

test_cant_pickle_argFunction · 0.56
foobarFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…