diff options
author | Anthony Sottile <asottile@umich.edu> | 2022-06-12 17:07:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-12 17:07:21 -0400 |
commit | 2246217295dc8cb30ef4a7b9d8dc449ce32e603a (patch) | |
tree | 11a8fb153af9229c058f55bb10d0d454f86a2bee /pyflakes/test/test_return_with_arguments_inside_generator.py | |
parent | becbab65bae84e3e19fc388a42dfabcff0c323c8 (diff) | |
download | pyflakes-2246217295dc8cb30ef4a7b9d8dc449ce32e603a.tar.gz |
burn the bridges with python 2.x (#707)
* pyupgrade --py36-plus
* remove handling of PY2
* remove handling of PY35_PLUS
* remove handling of PY36_PLUS
* remove obsolete version_info checks in pyflakes/
* adjust skips in tests for 3.6+
* is_py3_func -> has_annotations (specifically for lambda)
* remove references to py 2
* remove references to unichr
* clean up version-specific getattrs
* remove unused ReturnWithArgsInsideGenerator
* remove unused ast handlers
* remove unused RedefinedInListComp
Diffstat (limited to 'pyflakes/test/test_return_with_arguments_inside_generator.py')
-rw-r--r-- | pyflakes/test/test_return_with_arguments_inside_generator.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/pyflakes/test/test_return_with_arguments_inside_generator.py b/pyflakes/test/test_return_with_arguments_inside_generator.py deleted file mode 100644 index fc1272a..0000000 --- a/pyflakes/test/test_return_with_arguments_inside_generator.py +++ /dev/null @@ -1,34 +0,0 @@ - -from sys import version_info - -from pyflakes import messages as m -from pyflakes.test.harness import TestCase, skipIf - - -class Test(TestCase): - @skipIf(version_info >= (3, 3), 'new in Python 3.3') - def test_return(self): - self.flakes(''' - class a: - def b(): - for x in a.c: - if x: - yield x - return a - ''', m.ReturnWithArgsInsideGenerator) - - @skipIf(version_info >= (3, 3), 'new in Python 3.3') - def test_returnNone(self): - self.flakes(''' - def a(): - yield 12 - return None - ''', m.ReturnWithArgsInsideGenerator) - - @skipIf(version_info >= (3, 3), 'new in Python 3.3') - def test_returnYieldExpression(self): - self.flakes(''' - def a(): - b = yield a - return b - ''', m.ReturnWithArgsInsideGenerator) |