blob: 7961c52206690ac50be57a2bcbcb745b3d89ef89 [file] [log] [blame]
"""The following code should emit a raising-non-exception.
Previously, it didn't, due to a bug in the check for bad-exception-context,
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]