MCPcopy Create free account
hub / github.com/tox-dev/filelock / test_timeout_pickle

Function test_timeout_pickle

tests/test_error.py:23–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def test_timeout_pickle() -> None:
24 timeout = Timeout("/path/to/lock")
25 timeout_loaded = pickle.loads(pickle.dumps(timeout)) # noqa: S301
26
27 assert timeout.__class__ == timeout_loaded.__class__
28 assert str(timeout) == str(timeout_loaded)
29 assert repr(timeout) == repr(timeout_loaded)
30 assert timeout.lock_file == timeout_loaded.lock_file

Callers

nothing calls this directly

Calls 1

TimeoutClass · 0.90

Tested by

no test coverage detected