]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix for python 3 1419/head
authorAndy Kipp <andy@rstudio.com>
Tue, 14 Apr 2015 15:27:55 +0000 (11:27 -0400)
committerAndy Kipp <andy@rstudio.com>
Tue, 14 Apr 2015 15:27:55 +0000 (11:27 -0400)
tornado/test/simple_httpclient_test.py

index 4891cc00e7160524a907a1b5a240ab995f3df43e..c0de22b7cf08cdc186ad0c0b57c99e7186f541cf 100644 (file)
@@ -652,7 +652,7 @@ class MaxBodySizeTest(AsyncHTTPTestCase):
     def test_small_body(self):
         response = self.fetch('/small')
         response.rethrow()
-        self.assertEqual(response.body, "a"*1024*64)
+        self.assertEqual(response.body, b'a'*1024*64)
 
     def test_large_body(self):
         with ExpectLog(gen_log, "Malformed HTTP message from None: Content-Length too long"):
@@ -676,4 +676,4 @@ class MaxBufferSizeTest(AsyncHTTPTestCase):
     def test_large_body(self):
         response = self.fetch('/large')
         response.rethrow()
-        self.assertEqual(response.body, "a"*1024*100)
+        self.assertEqual(response.body, b'a'*1024*100)