diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-16 11:42:39 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-16 11:42:39 +0100 |
commit | 915719c6543ad92336ba5909ba6ab33d31028ad0 (patch) | |
tree | e48afc827c3bb8de757b74e7bbfc53154f7da422 | |
parent | 358cf792d4f4c6f27476c315bc815d5eb43e2e75 (diff) | |
download | pylint-915719c6543ad92336ba5909ba6ab33d31028ad0.tar.gz |
typo; fix py3k tests
-rw-r--r-- | checkers/format.py | 2 | ||||
-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.txt | 1 | ||||
-rw-r--r-- | test/test_func.py | 9 |
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 |