Sign in
fuchsia
/
third_party
/
github.com
/
pycqa
/
pylint
/
refs/heads/master
/
.
/
tests
/
functional
/
d
/
duplicate_except.py
blob: c68cf7a24be16344925390022fee25ce0482c103 [
file
] [
log
] [
blame
]
"""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