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

Function _pickle_round_trip

tests/core/test_errors.py:138–141  ·  view source on GitHub ↗
(
    error: Timeout | SoftFileLockProtocolError, *, protocol: int
)

Source from the content-addressed store, hash-verified

136
137
138def _pickle_round_trip(
139 error: Timeout | SoftFileLockProtocolError, *, protocol: int
140) -> Timeout | SoftFileLockProtocolError:
141 return pickle.loads(pickle.dumps(error, protocol=protocol)) # ruff:ignore[suspicious-pickle-usage] # input is created by these tests
142
143
144@pytest.fixture(

Calls

no outgoing calls

Tested by

no test coverage detected