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

Method test_onlyPythonSource

pyflakes/test/test_api.py:129–134  ·  view source on GitHub ↗

Files that are not Python source files are not included.

(self)

Source from the content-addressed store, hash-verified

127 self.assertEqual(list(iterSourceCode([self.tempdir])), [childpath])
128
129 def test_onlyPythonSource(self):
130 """
131 Files that are not Python source files are not included.
132 """
133 self.makeEmptyFile('foo.pyc')
134 self.assertEqual(list(iterSourceCode([self.tempdir])), [])
135
136 def test_recurses(self):
137 """

Callers

nothing calls this directly

Calls 2

makeEmptyFileMethod · 0.95
iterSourceCodeFunction · 0.90

Tested by

no test coverage detected