summaryrefslogtreecommitdiff
path: root/pylint/test/input/func_w0702.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/input/func_w0702.py')
-rw-r--r--pylint/test/input/func_w0702.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/pylint/test/input/func_w0702.py b/pylint/test/input/func_w0702.py
new file mode 100644
index 0000000..1f82a23
--- /dev/null
+++ b/pylint/test/input/func_w0702.py
@@ -0,0 +1,17 @@
+"""check empty except statement
+"""
+from __future__ import print_function
+__revision__ = 0
+
+if __revision__:
+ try:
+ print(__revision__)
+ except:
+ print('error')
+
+try:
+ __revision__ += 1
+except TypeError:
+ print('error')
+except Exception:
+ print('error')