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

Method test_dynamic_module

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_check_dynamic_moduleMethod · 0.95

Tested by

no test coverage detected