MCPcopy Index your code
hub / github.com/python/cpython / test_empty_list

Method test_empty_list

Lib/test/test_importlib/import_/test_path.py:50–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 self.check_found(found, importer)
49
50 def test_empty_list(self):
51 # An empty list should not count as asking for sys.path.
52 module = 'module'
53 path = '<test path>'
54 importer = util.mock_spec(module)
55 with util.import_state(path_importer_cache={path: importer},
56 path=[path]):
57 self.assertIsNone(self.find('module', []))
58
59 def test_path_hooks(self):
60 # Test that sys.path_hooks is used.

Callers

nothing calls this directly

Calls 2

assertIsNoneMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected