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

Method test_ignore_file

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

Source from the content-addressed store, hash-verified

170 self.assertEqual(found, self.NOT_FOUND)
171
172 def test_ignore_file(self):
173 # If a directory got changed to a file from underneath us, then don't
174 # worry about looking for submodules.
175 with tempfile.NamedTemporaryFile() as file_obj:
176 finder = self.get_finder(file_obj.name)
177 found = self._find(finder, 'doesnotexist')
178 self.assertEqual(found, self.NOT_FOUND)
179
180
181class FinderTestsPEP451(FinderTests):

Callers

nothing calls this directly

Calls 3

get_finderMethod · 0.95
_findMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected