Commits

Anonymous committed b03345c

typo; fix py3k tests

  • Participants
  • Parent commits e5e28a5

Comments (0)

Files changed (5)

checkers/format.py

     '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'"([^"\\]|\\.)*?"'

test/messages/func_unknown_encoding.txt

-E:  1: unknown encoding: IBO-8859-1

test/messages/func_unknown_encoding_py29.txt

+E:  1: unknown encoding: IBO-8859-1

test/messages/func_unknown_encoding_py30.txt

+F:  1: error while code parsing: unknown encoding: IBO-8859-1

test/test_func.py

                 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