MCPcopy Index your code
hub / github.com/python/mypy / test_c_module

Method test_c_module

mypy/test/teststubgen.py:1628–1635  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1626 assert all(sub.startswith("unittest.") for sub in p.subpackages)
1627
1628 def test_c_module(self) -> None:
1629 with ModuleInspect() as m:
1630 p = m.get_package_properties("_socket")
1631 assert p is not None
1632 assert p.name == "_socket"
1633 assert p.path is None
1634 assert p.is_c_module is True
1635 assert p.subpackages == []
1636
1637 def test_non_existent(self) -> None:
1638 with ModuleInspect() as m:

Callers

nothing calls this directly

Calls 2

ModuleInspectClass · 0.90

Tested by

no test coverage detected