diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py index fd80f41b..29987a55 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")