From: Andy Kipp Date: Tue, 14 Apr 2015 15:27:55 +0000 (-0400) Subject: Fix for python 3 X-Git-Tag: v4.2.0b1~24^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6589a7a5152d22487aae4d348982167fa9b106b;p=thirdparty%2Ftornado.git Fix for python 3 --- diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py index 4891cc00e..c0de22b7c 100644 --- a/tornado/test/simple_httpclient_test.py +++ b/tornado/test/simple_httpclient_test.py @@ -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)