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

Method test_function_module_name

tests/cloudpickle_test.py:1578–1584  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1576 sys.modules.pop("_faulty_module", None)
1577
1578 def test_function_module_name(self):
1579 def local_func(x):
1580 return x
1581
1582 for func in [local_func, lambda x: x]:
1583 cloned = pickle_depickle(func, protocol=self.protocol)
1584 self.assertEqual(cloned.__module__, func.__module__)
1585
1586 def test_function_qualname(self):
1587 def func(x):

Callers

nothing calls this directly

Calls 1

pickle_depickleFunction · 0.85

Tested by

no test coverage detected