summaryrefslogtreecommitdiff
path: root/pyflakes/test/harness.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2022-09-16 00:14:09 -0400
committerGitHub <noreply@github.com>2022-09-16 00:14:09 -0400
commit04ecb0c324ef3b61124e2f80f9e1af6c3a4c7b26 (patch)
tree99b73ea74e99a27ab09f59ea4b42f06c7f850749 /pyflakes/test/harness.py
parent4a2407d7aa0834c37c9fe97e2db37fa8d01caa5b (diff)
downloadpyflakes-04ecb0c324ef3b61124e2f80f9e1af6c3a4c7b26.tar.gz
remove handling of `# type:` comments now that pyflakes is py3+ (#684)
Diffstat (limited to 'pyflakes/test/harness.py')
-rw-r--r--pyflakes/test/harness.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/pyflakes/test/harness.py b/pyflakes/test/harness.py
index 9bcc0bb..863921e 100644
--- a/pyflakes/test/harness.py
+++ b/pyflakes/test/harness.py
@@ -16,13 +16,10 @@ class TestCase(unittest.TestCase):
def flakes(self, input, *expectedOutputs, **kw):
tree = ast.parse(textwrap.dedent(input))
- file_tokens = checker.make_tokens(textwrap.dedent(input))
if kw.get('is_segment'):
tree = tree.body[0]
kw.pop('is_segment')
- w = checker.Checker(
- tree, file_tokens=file_tokens, withDoctest=self.withDoctest, **kw
- )
+ w = checker.Checker(tree, withDoctest=self.withDoctest, **kw)
outputs = [type(o) for o in w.messages]
expectedOutputs = list(expectedOutputs)
outputs.sort(key=lambda t: t.__name__)