MCPcopy Create free account
hub / github.com/pytest-dev/pytest / create_module

Method create_module

src/_pytest/assertion/rewrite.py:126–129  ·  view source on GitHub ↗
(
        self, spec: importlib.machinery.ModuleSpec
    )

Source from the content-addressed store, hash-verified

124 )
125
126 def create_module(
127 self, spec: importlib.machinery.ModuleSpec
128 ) -> Optional[types.ModuleType]:
129 return None # default behaviour is fine
130
131 def exec_module(self, module: types.ModuleType) -> None:
132 assert module.__spec__ is not None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected