From: Ben Darnell Date: Mon, 7 May 2012 01:39:57 +0000 (-0700) Subject: Fix test on python 3 X-Git-Tag: v2.3.0~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62ff417c196c0ad5f34034e78681ced1ef576eb4;p=thirdparty%2Ftornado.git Fix test on python 3 --- diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py index fd80f41ba..29987a555 100644 --- a/tornado/test/simple_httpclient_test.py +++ b/tornado/test/simple_httpclient_test.py @@ -257,7 +257,7 @@ class SimpleHTTPClientTestCase(AsyncHTTPTestCase, LogTrapTestCase): self.assertEqual(response.code, 200) self.assertEqual(response.headers["content-length"], "2") self.assertEqual(response.headers["access-control-allow-origin"], "*") - self.assertEqual(response.body, "ok") + self.assertEqual(response.body, b("ok")) def test_no_content(self): response = self.fetch("/no_content")