MCPcopy Index your code
hub / github.com/python/cpython / assert_func_defs_other_pickle

Method assert_func_defs_other_pickle

Lib/test/test_crossinterp.py:722–726  ·  view source on GitHub ↗
(self, defs, mod)

Source from the content-addressed store, hash-verified

720 self.assert_roundtrip_identical(defs.TOP_FUNCTIONS)
721
722 def assert_func_defs_other_pickle(self, defs, mod):
723 # Pickle relative to a different module than the original.
724 for func in defs.TOP_FUNCTIONS:
725 assert not hasattr(mod, func.__name__), (getattr(mod, func.__name__),)
726 self.assert_not_shareable(defs.TOP_FUNCTIONS)
727
728 def assert_func_defs_other_unpickle(self, defs, mod, *, fail=False):
729 # Unpickle relative to a different module than the original.

Callers

nothing calls this directly

Calls 1

assert_not_shareableMethod · 0.80

Tested by

no test coverage detected