]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix test on python 3
authorBen Darnell <ben@bendarnell.com>
Mon, 7 May 2012 01:39:57 +0000 (18:39 -0700)
committerBen Darnell <ben@bendarnell.com>
Mon, 7 May 2012 01:39:57 +0000 (18:39 -0700)
tornado/test/simple_httpclient_test.py

index fd80f41ba7f4a2e84f564d19c94f94ed3445347f..29987a5556b87e5d234a15629f49a613c9122d74 100644 (file)
@@ -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")