]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix tests so they are compatible with python 3.x
authorTatiana Al-Chueyr <tatiana.alchueyr@gmail.com>
Mon, 21 Jul 2014 23:33:00 +0000 (16:33 -0700)
committerTatiana Al-Chueyr <tatiana.alchueyr@gmail.com>
Mon, 21 Jul 2014 23:33:00 +0000 (16:33 -0700)
tornado/test/httpclient_test.py

index 7dae7a799463adf5fe9c215e79307806b7ac879a..5e3454056698c743f2a584a56753ffb0b8d73feb 100644 (file)
@@ -141,7 +141,7 @@ class HTTPClientCommonTestCase(AsyncHTTPTestCase):
         return self.wait()
 
     def test_patch_receives_payload(self):
-        body = "some patch data"
+        body = b"some patch data"
         response = self.fetch("/patch", method='PATCH', body=body)
         self.assertEqual(response.code, 200)
         self.assertEqual(response.body, body)