Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _test_marshal
Method
_test_marshal
extra_tests/snippets/stdlib_marshal.py:13–14 ·
view source on GitHub ↗
(self, data)
Source
from the content-addressed store, hash-verified
11
return
marshal.loads(marshal.dumps(data))
12
13
def
_test_marshal(self, data):
14
self.assertEqual(self.dump_then_load(data), data)
15
16
def
test_marshal_int(self):
17
self._test_marshal(0)
Callers
9
test_marshal_int
Method · 0.95
test_marshal_bool
Method · 0.95
test_marshal_float
Method · 0.95
test_marshal_str
Method · 0.95
test_marshal_list
Method · 0.95
test_marshal_tuple
Method · 0.95
test_marshal_dict
Method · 0.95
test_marshal_set
Method · 0.95
test_marshal_frozen_set
Method · 0.95
Calls
2
dump_then_load
Method · 0.95
assertEqual
Method · 0.45
Tested by
9
test_marshal_int
Method · 0.76
test_marshal_bool
Method · 0.76
test_marshal_float
Method · 0.76
test_marshal_str
Method · 0.76
test_marshal_list
Method · 0.76
test_marshal_tuple
Method · 0.76
test_marshal_dict
Method · 0.76
test_marshal_set
Method · 0.76
test_marshal_frozen_set
Method · 0.76