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

Method test_failure

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

Source from the content-addressed store, hash-verified

21 check_found = None
22
23 def test_failure(self):
24 # Test None returned upon not finding a suitable loader.
25 module = '<test module>'
26 with util.import_state():
27 self.assertIsNone(self.find(module))
28
29 def test_sys_path(self):
30 # Test that sys.path is used when 'path' is None.

Callers

nothing calls this directly

Calls 2

assertIsNoneMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected