From 62ff417c196c0ad5f34034e78681ced1ef576eb4 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 6 May 2012 18:39:57 -0700 Subject: [PATCH] Fix test on python 3 --- tornado/test/simple_httpclient_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")