]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix httputil_test on python 3.2.
authorBen Darnell <ben@bendarnell.com>
Sun, 11 Jan 2015 18:00:00 +0000 (13:00 -0500)
committerBen Darnell <ben@bendarnell.com>
Sun, 11 Jan 2015 18:00:00 +0000 (13:00 -0500)
tornado/test/httputil_test.py

index 53bb4e7985b0ec71c8bd21ec80314190d49e1c4b..3995abe8b94ab9166e0ed43205b12cf4ef578e3d 100644 (file)
@@ -7,6 +7,7 @@ from tornado.escape import utf8, native_str
 from tornado.log import gen_log
 from tornado.testing import ExpectLog
 from tornado.test.util import unittest
+from tornado.util import u
 
 import datetime
 import logging
@@ -236,13 +237,13 @@ Foo: even
         # and cpython's unicodeobject.c (which defines the implementation
         # of unicode_type.splitlines(), and uses a different list than TR13).
         newlines = [
-            u'\u001b', # VERTICAL TAB
-            u'\u001c', # FILE SEPARATOR
-            u'\u001d', # GROUP SEPARATOR
-            u'\u001e', # RECORD SEPARATOR
-            u'\u0085', # NEXT LINE
-            u'\u2028', # LINE SEPARATOR
-            u'\u2029', # PARAGRAPH SEPARATOR
+            u('\u001b'), # VERTICAL TAB
+            u('\u001c'), # FILE SEPARATOR
+            u('\u001d'), # GROUP SEPARATOR
+            u('\u001e'), # RECORD SEPARATOR
+            u('\u0085'), # NEXT LINE
+            u('\u2028'), # LINE SEPARATOR
+            u('\u2029'), # PARAGRAPH SEPARATOR
             ]
         for newline in newlines:
             # Try the utf8 and latin1 representations of each newline