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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/input/func_bad_exception_context_py30.py b/test/input/func_bad_exception_context_py30.py
index b520e68..df4df20 100644
--- a/test/input/func_bad_exception_context_py30.py
+++ b/test/input/func_bad_exception_context_py30.py
@@ -2,6 +2,8 @@
# pylint: disable=unreachable
+import socket
+
__revision__ = 0
class ExceptionSubclass(Exception):
@@ -14,4 +16,4 @@ def test():
raise IndexError from ZeroDivisionError
raise IndexError from object()
raise IndexError from ExceptionSubclass
-
+ raise IndexError from socket.error