MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / get_dynamic_class_pickle

Method get_dynamic_class_pickle

tests/cloudpickle_test.py:2070–2082  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2068 pytest.xfail("This test fails due to different tracker_id.")
2069
2070 def get_dynamic_class_pickle():
2071 class A:
2072 """Class with potential string interning issues."""
2073
2074 arg_1 = "class_value"
2075
2076 def join(self):
2077 pass
2078
2079 def test_method(self, arg_1, join):
2080 pass
2081
2082 return cloudpickle.dumps(A)
2083
2084 with subprocess_worker(protocol=self.protocol) as w:
2085 A_dump = w.run(get_dynamic_class_pickle)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected