diff options
author | Anthony Sottile <asottile@umich.edu> | 2022-11-27 12:38:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 15:38:53 -0500 |
commit | 98d4fa33ccacf74c62c5a17cc35ce572fd35b223 (patch) | |
tree | f9b6b5fca55e2834bd86505aca117db2be624934 /pyflakes/test/test_other.py | |
parent | 37f203ed6ec9c54ea4ded0b8480846ac750a1747 (diff) | |
download | pyflakes-98d4fa33ccacf74c62c5a17cc35ce572fd35b223.tar.gz |
pyflakes: python3.8+ (#752)
Diffstat (limited to 'pyflakes/test/test_other.py')
-rw-r--r-- | pyflakes/test/test_other.py | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/pyflakes/test/test_other.py b/pyflakes/test/test_other.py index ce742a5..42e99ae 100644 --- a/pyflakes/test/test_other.py +++ b/pyflakes/test/test_other.py @@ -445,36 +445,6 @@ class Test(TestCase): continue ''') - @skipIf(version_info > (3, 8), "Python <= 3.8 only") - def test_continueInFinally(self): - # 'continue' inside 'finally' is a special syntax error - # that is removed in 3.8 - self.flakes(''' - while True: - try: - pass - finally: - continue - ''', m.ContinueInFinally) - - self.flakes(''' - while True: - try: - pass - finally: - if 1: - if 2: - continue - ''', m.ContinueInFinally) - - # Even when not in a loop, this is the error Python gives - self.flakes(''' - try: - pass - finally: - continue - ''', m.ContinueInFinally) - def test_breakOutsideLoop(self): self.flakes(''' break @@ -1716,7 +1686,6 @@ class TestUnusedAssignment(TestCase): print(f'\x7b4*baz\N{RIGHT CURLY BRACKET}') ''') - @skipIf(version_info < (3, 8), 'new in Python 3.8') def test_assign_expr(self): """Test PEP 572 assignment expressions are treated as usage / write.""" self.flakes(''' @@ -1725,7 +1694,6 @@ class TestUnusedAssignment(TestCase): print(x) ''') - @skipIf(version_info < (3, 8), 'new in Python 3.8') def test_assign_expr_generator_scope(self): """Test assignment expressions in generator expressions.""" self.flakes(''' @@ -1733,7 +1701,6 @@ class TestUnusedAssignment(TestCase): print(y) ''') - @skipIf(version_info < (3, 8), 'new in Python 3.8') def test_assign_expr_nested(self): """Test assignment expressions in nested expressions.""" self.flakes(''' @@ -1972,19 +1939,6 @@ class TestAsyncStatements(TestCase): return output ''', m.BreakOutsideLoop) - @skipIf(version_info > (3, 8), "Python <= 3.8 only") - def test_continueInAsyncForFinally(self): - self.flakes(''' - async def read_data(db): - output = [] - async for row in db.cursor(): - try: - output.append(row) - finally: - continue - return output - ''', m.ContinueInFinally) - def test_asyncWith(self): self.flakes(''' async def commit(session, data): |