mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:26 +00:00

## Summary Per @ntBre in https://github.com/astral-sh/ruff/pull/19111, it would be a good idea to make the tests no longer have these syntax errors, so this PR updates the tests and snapshots. `B031` gave me a lot of trouble since the ending test of declaring a function named `groupby` makes it so that inside other functions, it's unclear which `groupby` is referred to since it depends on when the function is called. To fix it I made each function have it's own `from itertools import groupby` so there's no more ambiguity.
30 lines
396 B
Python
30 lines
396 B
Python
for _ in []:
|
|
try:
|
|
pass
|
|
except Exception:
|
|
continue
|
|
|
|
try:
|
|
pass
|
|
except:
|
|
continue
|
|
|
|
try:
|
|
pass
|
|
except (Exception,):
|
|
continue
|
|
|
|
try:
|
|
pass
|
|
except (Exception, ValueError):
|
|
continue
|
|
|
|
try:
|
|
pass
|
|
except ValueError:
|
|
continue
|
|
|
|
try:
|
|
pass
|
|
except (ValueError,):
|
|
continue
|