summaryrefslogtreecommitdiff
path: root/pylint/test/functional/indexing_exception.py
blob: 7ea50d5d5cf47c3e86853cf8889684be8216b857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""
Check for indexing exceptions.
"""
# pylint: disable=import-error, no-absolute-import
__revision__ = 0

from unknown import ExtensionException

class SubException(IndexError):
    """ empty """

_ = IndexError("test")[0] # [indexing-exception]
_ = ZeroDivisionError("error")[0] # [indexing-exception]
_ = ExtensionException("error")[0]
_ = SubException("error")[1] # [indexing-exception]