From e6589a7a5152d22487aae4d348982167fa9b106b Mon Sep 17 00:00:00 2001 From: Andy Kipp Date: Tue, 14 Apr 2015 11:27:55 -0400 Subject: [PATCH] Fix for python 3 --- tornado/test/simple_httpclient_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.2