summaryrefslogtreecommitdiff
path: root/test/input/func_unreachable.py
diff options
context:
space:
mode:
authorroot <none@none>2006-04-26 10:48:09 +0000
committerroot <none@none>2006-04-26 10:48:09 +0000
commit4becf6f9e596b45401680c4947e2d92c953d5e08 (patch)
tree3bb03a16daa8c780bf60c622dc288eb01cfca145 /test/input/func_unreachable.py
downloadpylint-git-4becf6f9e596b45401680c4947e2d92c953d5e08.tar.gz
forget the past.
forget the past.
Diffstat (limited to 'test/input/func_unreachable.py')
-rw-r--r--test/input/func_unreachable.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/input/func_unreachable.py b/test/input/func_unreachable.py
new file mode 100644
index 000000000..1cabce718
--- /dev/null
+++ b/test/input/func_unreachable.py
@@ -0,0 +1,22 @@
+"""docstring"""
+
+__revision__ = ''
+
+def func1():
+ """docstring"""
+ return 1
+ print 'unreachable'
+
+def func2():
+ """docstring"""
+ while 1:
+ break
+ print 'unreachable'
+
+def func3():
+ """docstring"""
+ for i in (1, 2, 3):
+ print i
+ continue
+ print 'unreachable'
+