This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
multipub/.pyenv/lib/python3.7/site-packages/pylint/test/functional/duplicate_except.py

13 lines
290 B
Python
Raw Normal View History

2019-02-09 02:45:25 -06:00
"""Test for duplicate-check."""
def main():
"""The second ValueError should be flagged."""
try:
raise ValueError('test')
except ValueError:
return 1
except ValueError: # [duplicate-except]
return 2
except (OSError, TypeError):
return 3