blob: f7013e240cd599786e4b94fb704df0ca4ddfeb5b (
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-context,
which prevented further checking on the Raise node.
"""
# pylint: disable=import-error, too-few-public-methods
from missing_module import missing
class Exc(object):
"""Not an actual exception."""
raise Exc from missing # [raising-non-exception]
|