Skip to content

Commit

Permalink
Add another test for #422 (#433)
Browse files Browse the repository at this point in the history
* Add another test for #422

* remove old test
  • Loading branch information
untitaker authored and myint committed May 4, 2019
1 parent 232cb1d commit 0b16364
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions pyflakes/test/test_type_annotations.py
Expand Up @@ -77,24 +77,16 @@ def f(self, x): return x
def test_not_a_typing_overload(self):
"""regression test for @typing.overload detection bug in 2.1.0"""
self.flakes("""
x = lambda f: f
def foo(x):
return x
@x
def t():
@foo
def bar():
pass
y = lambda f: f
@x
@y
def t():
pass
@x
@y
def t():
def bar():
pass
""", m.RedefinedWhileUnused, m.RedefinedWhileUnused)
""", m.RedefinedWhileUnused)

@skipIf(version_info < (3, 6), 'new in Python 3.6')
def test_variable_annotations(self):
Expand Down

0 comments on commit 0b16364

Please sign in to comment.