MCPcopy Create free account
hub / github.com/PyCQA/pyflakes / test_explicitFiles

Method test_explicitFiles

pyflakes/test/test_api.py:212–219  ·  view source on GitHub ↗

If one of the paths given to L{iterSourceCode} is not a directory but a file, it will include that in its output.

(self)

Source from the content-addressed store, hash-verified

210 sorted([apath, bpath]))
211
212 def test_explicitFiles(self):
213 """
214 If one of the paths given to L{iterSourceCode} is not a directory but
215 a file, it will include that in its output.
216 """
217 epath = self.makeEmptyFile('e.py')
218 self.assertEqual(list(iterSourceCode([epath])),
219 [epath])
220
221
222class TestReporter(TestCase):

Callers

nothing calls this directly

Calls 2

makeEmptyFileMethod · 0.95
iterSourceCodeFunction · 0.90

Tested by

no test coverage detected