summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-12-16 11:42:39 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-12-16 11:42:39 +0100
commit915719c6543ad92336ba5909ba6ab33d31028ad0 (patch)
treee48afc827c3bb8de757b74e7bbfc53154f7da422
parent358cf792d4f4c6f27476c315bc815d5eb43e2e75 (diff)
downloadpylint-915719c6543ad92336ba5909ba6ab33d31028ad0.tar.gz
typo; fix py3k tests
-rw-r--r--checkers/format.py2
-rw-r--r--test/messages/func_unknown_encoding_py29.txt (renamed from test/messages/func_unknown_encoding.txt)0
-rw-r--r--test/messages/func_unknown_encoding_py30.txt1
-rw-r--r--test/test_func.py9
4 files changed, 5 insertions, 7 deletions
diff --git a/checkers/format.py b/checkers/format.py
index 65202ff..6a2d5ac 100644
--- a/checkers/format.py
+++ b/checkers/format.py
@@ -73,7 +73,7 @@ if sys.version_info < (3, 0):
'W0333': ('Use of the `` operator',
'Used when the deprecated "``" (backtick) operator is used '
'instead of the str() function.'),
- }
+ })
# simple quoted string rgx
SQSTRING_RGX = r'"([^"\\]|\\.)*?"'
diff --git a/test/messages/func_unknown_encoding.txt b/test/messages/func_unknown_encoding_py29.txt
index ab840d9..ab840d9 100644
--- a/test/messages/func_unknown_encoding.txt
+++ b/test/messages/func_unknown_encoding_py29.txt
diff --git a/test/messages/func_unknown_encoding_py30.txt b/test/messages/func_unknown_encoding_py30.txt
new file mode 100644
index 0000000..9a0a628
--- /dev/null
+++ b/test/messages/func_unknown_encoding_py30.txt
@@ -0,0 +1 @@
+F: 1: error while code parsing: unknown encoding: IBO-8859-1
diff --git a/test/test_func.py b/test/test_func.py
index 8fe99fe..cdfc116 100644
--- a/test/test_func.py
+++ b/test/test_func.py
@@ -144,12 +144,9 @@ class TestTests(testlib.TestCase):
continue
todo.sort()
if PY3K:
- rest = [# encoding errors now handled by astng:
- 'E0501', 'E0502',
- # ...
- 'E1122', 'I0001',
- # deprecated syntax removed from py3k :
- 'W0122', 'W0331', 'W0332', 'W0333',
+ rest = ['E1122', 'I0001',
+ # deprecated exec statement removed from py3k :
+ 'W0122',
# XXX : no use case for now :
'W0402', # deprecated module
'W0403', # implicit relative import