summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-11-16 17:16:38 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-11-16 17:16:38 +0100
commit2e82094c1bc37313b74726eaffe09cf4517355bd (patch)
tree5f9a107c94e1f1de18c388aa4c21dbbe653db25b /test
parent4322619b775d4ad7f9e6b75aedd61c59ead4ea37 (diff)
downloadpylint-git-2e82094c1bc37313b74726eaffe09cf4517355bd.tar.gz
py3k: apply is removed: move test to func_3k_removed_stuff
Diffstat (limited to 'test')
-rw-r--r--test/input/func_3k_removed_stuff_py_30.py2
-rw-r--r--test/input/func_w0151.py4
-rw-r--r--test/messages/func_3k_removed_stuff_py_30.txt1
-rw-r--r--test/messages/func_w0151.txt3
4 files changed, 4 insertions, 6 deletions
diff --git a/test/input/func_3k_removed_stuff_py_30.py b/test/input/func_3k_removed_stuff_py_30.py
index f14be8d49..ceb06d0f5 100644
--- a/test/input/func_3k_removed_stuff_py_30.py
+++ b/test/input/func_3k_removed_stuff_py_30.py
@@ -1,7 +1,7 @@
"""test relative import
"""
-__revision__ = 0
+__revision__ = apply(map, (str, (1, 2, 3)))
import func_w0302
diff --git a/test/input/func_w0151.py b/test/input/func_w0151.py
index 4c5544669..e6862c5af 100644
--- a/test/input/func_w0151.py
+++ b/test/input/func_w0151.py
@@ -1,7 +1,5 @@
"""check black listed builtins
"""
-__revision__ = apply(map, (str, (1, 2, 3)))
-
-YYYYY = map(str, (1, 2, 3))
+__revision__ = map(str, (1, 2, 3))
diff --git a/test/messages/func_3k_removed_stuff_py_30.txt b/test/messages/func_3k_removed_stuff_py_30.txt
index 68fb264bd..329144f9e 100644
--- a/test/messages/func_3k_removed_stuff_py_30.txt
+++ b/test/messages/func_3k_removed_stuff_py_30.txt
@@ -1,2 +1,3 @@
E: 12:function: Instance of 'unicode' has no 'looower' member
+W: 4: Used builtin function 'apply'
W: 6: Relative import 'func_w0302', should be 'input.func_w0302'
diff --git a/test/messages/func_w0151.txt b/test/messages/func_w0151.txt
index dae33d9f9..9a5396734 100644
--- a/test/messages/func_w0151.txt
+++ b/test/messages/func_w0151.txt
@@ -1,2 +1 @@
-W: 4: Used builtin function 'apply'
-W: 6: Used builtin function 'map'
+W: 4: Used builtin function 'map'