diff options
Diffstat (limited to 'tests/functional/r/raising_non_exception_py3.py')
| -rw-r--r-- | tests/functional/r/raising_non_exception_py3.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/functional/r/raising_non_exception_py3.py b/tests/functional/r/raising_non_exception_py3.py new file mode 100644 index 000000000..7961c5220 --- /dev/null +++ b/tests/functional/r/raising_non_exception_py3.py @@ -0,0 +1,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, useless-object-inheritance + +from missing_module import missing + +class Exc(object): + """Not an actual exception.""" + +raise Exc from missing # [raising-non-exception] |
