MCPcopy Index your code
hub / github.com/cloudpipe/cloudpickle / test_complex_class

Function test_complex_class

tests/test_backward_compat.py:72–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71
72def test_complex_class():
73 SimpleClass = load_obj("class_with_type_hints.pkl")
74 c = SimpleClass(1)
75 assert hasattr(c, "attribute")
76 assert c.attribute == 1
77
78 # test class tracking feature
79 assert SimpleClass is load_obj("class_with_type_hints.pkl")
80
81
82def test_complex_function():

Callers

nothing calls this directly

Calls 2

load_objFunction · 0.85
SimpleClassClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…