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

Method test_dynamic_module

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

Source from the content-addressed store, hash-verified

575 sys.modules.pop("mod", None)
576
577 def test_dynamic_module(self):
578 mod = types.ModuleType("mod")
579 assert mod.__package__ is None
580 self._check_dynamic_module(mod)
581
582 def test_dynamic_module_no_package(self):
583 # non-regression test for #116

Callers

nothing calls this directly

Calls 1

_check_dynamic_moduleMethod · 0.95

Tested by

no test coverage detected