Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ round_trip
Method
round_trip
testing/test_pathlib.py:539–541 ·
view source on GitHub ↗
(obj)
Source
from the content-addressed store, hash-verified
537
import
pickle
538
539
def
round_trip(obj):
540
s = pickle.dumps(obj)
541
return
pickle.loads(s)
542
543
module = import_path(fn1, mode=
"importlib"
, root=tmp_path)
544
Data1 = getattr(module,
"Data"
)
Callers
nothing calls this directly
Calls
1
dumps
Method · 0.80
Tested by
no test coverage detected