summaryrefslogtreecommitdiff
path: root/tests/functional/r/raising/raising_non_exception.py
blob: 1b91565289951b10828e78cda246fd6a9e01ce63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""The following code should emit a raising-non-exception.

Previously, it didn't, due to a bug in the check for bad-exception-cause,
which prevented further checking on the Raise node.
"""
# pylint: disable=import-error, too-few-public-methods, useless-object-inheritance

from missing_module import missing

class Exc(object):
    """Not an actual exception."""

raise Exc from missing # [raising-non-exception]