diff options
| author | Ashley Whetter <ashley@awhetter.co.uk> | 2019-06-14 22:28:42 -0700 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-06-20 10:02:14 +0200 |
| commit | 33b8185a455c1686d038258697bb93005f2441c2 (patch) | |
| tree | 4a50ccac775c009436e45803129e428ed694065f /tests/functional/indexing_exception.py | |
| parent | 7081d91f30728653000bdfc59ea85a3395f96418 (diff) | |
| download | pylint-git-33b8185a455c1686d038258697bb93005f2441c2.tar.gz | |
Stopped installing tests with package
Diffstat (limited to 'tests/functional/indexing_exception.py')
| -rw-r--r-- | tests/functional/indexing_exception.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/functional/indexing_exception.py b/tests/functional/indexing_exception.py new file mode 100644 index 000000000..9ac1a7c68 --- /dev/null +++ b/tests/functional/indexing_exception.py @@ -0,0 +1,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] |
