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

Method __getstate__

tests/test_main.py:222–223  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected