summaryrefslogtreecommitdiff
path: root/pylint/test/input/func_noerror_except_pass.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/input/func_noerror_except_pass.py')
-rw-r--r--pylint/test/input/func_noerror_except_pass.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/pylint/test/input/func_noerror_except_pass.py b/pylint/test/input/func_noerror_except_pass.py
new file mode 100644
index 0000000..5bb8011
--- /dev/null
+++ b/pylint/test/input/func_noerror_except_pass.py
@@ -0,0 +1,12 @@
+"""
+#3205: W0704 (except doesn't do anything) false positive if some statements
+follow a "pass"
+"""
+from __future__ import print_function
+__revision__ = None
+
+try:
+ A = 2
+except ValueError:
+ pass # pylint: disable=W0107
+ print(A)