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

Method test_failure

Lib/test/test_importlib/source/test_finder.py:121–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

119 self.assertIn('__init__', loader.get_filename(name))
120
121 def test_failure(self):
122 with util.create_modules('blah') as mapping:
123 nothing = self.import_(mapping['.root'], 'sdfsadsadf')
124 self.assertEqual(nothing, self.NOT_FOUND)
125
126 def test_empty_string_for_dir(self):
127 # The empty string from sys.path means to search in the cwd.

Callers

nothing calls this directly

Calls 2

import_Method · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected