summaryrefslogtreecommitdiff
path: root/tests/functional/r/regression/regression_1326_crash_uninferable.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/r/regression/regression_1326_crash_uninferable.py')
-rw-r--r--tests/functional/r/regression/regression_1326_crash_uninferable.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/functional/r/regression/regression_1326_crash_uninferable.py b/tests/functional/r/regression/regression_1326_crash_uninferable.py
new file mode 100644
index 000000000..a42d44ac3
--- /dev/null
+++ b/tests/functional/r/regression/regression_1326_crash_uninferable.py
@@ -0,0 +1,12 @@
+# pylint: disable=missing-docstring
+
+import socket
+
+RETRYABLE_EXCEPTIONS = (socket.error,)
+
+# pylint: disable=wrong-exception-operation
+def exception_handler():
+ try:
+ yield 1
+ except RETRYABLE_EXCEPTIONS + tuple():
+ yield 2