MCPcopy Create free account
hub / github.com/python/cpython / test_module

Method test_module

Lib/test/test_importlib/builtin/test_finder.py:14–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12 """Test find_spec() for built-in modules."""
13
14 def test_module(self):
15 # Common case.
16 with util.uncache(util.BUILTINS.good_name):
17 found = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name)
18 self.assertTrue(found)
19 self.assertEqual(found.origin, 'built-in')
20
21 # Built-in modules cannot be a package.
22 test_package = None

Callers

nothing calls this directly

Calls 3

assertTrueMethod · 0.80
find_specMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected