summaryrefslogtreecommitdiff
path: root/test/input/func_bad_exception_context_py30.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/input/func_bad_exception_context_py30.py')
-rw-r--r--test/input/func_bad_exception_context_py30.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/input/func_bad_exception_context_py30.py b/test/input/func_bad_exception_context_py30.py
index d3ab127..98b44ee 100644
--- a/test/input/func_bad_exception_context_py30.py
+++ b/test/input/func_bad_exception_context_py30.py
@@ -1,8 +1,8 @@
"""Check that raise ... from .. uses a proper exception context """
-# pylint: disable=unreachable
+# pylint: disable=unreachable, import-error
-import socket
+import socket, unknown
__revision__ = 0
@@ -21,3 +21,4 @@ def test():
raise IndexError() from ZeroDivisionError
raise IndexError() from ZeroDivisionError()
raise IndexError() from object()
+ raise IndexError() from unknown