summaryrefslogtreecommitdiff
path: root/pyflakes/test/test_other.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyflakes/test/test_other.py')
-rw-r--r--pyflakes/test/test_other.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pyflakes/test/test_other.py b/pyflakes/test/test_other.py
index efbc75d..97685ef 100644
--- a/pyflakes/test/test_other.py
+++ b/pyflakes/test/test_other.py
@@ -1668,6 +1668,15 @@ class TestUnusedAssignment(TestCase):
except Exception as e: pass
''', m.UnusedVariable)
+ @skipIf(version_info < (3, 11), 'new in Python 3.11')
+ def test_exception_unused_in_except_star(self):
+ self.flakes('''
+ try:
+ pass
+ except* OSError as e:
+ pass
+ ''', m.UnusedVariable)
+
def test_exceptionUnusedInExceptInFunction(self):
self.flakes('''
def download_review():