summaryrefslogtreecommitdiff
path: root/pylint/test/functional/indexing_exception.py
blob: 9ac1a7c68c812d96de01b53650ade5232be2cefe (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

from unknown import ExtensionException
__revision__ = 0

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

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