From: Tatiana Al-Chueyr Date: Mon, 21 Jul 2014 23:33:00 +0000 (-0700) Subject: Fix tests so they are compatible with python 3.x X-Git-Tag: v4.1.0b1~123^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3bf5314131c2429b2c0e1f3c70a86da7b2678ff;p=thirdparty%2Ftornado.git Fix tests so they are compatible with python 3.x --- diff --git a/tornado/test/httpclient_test.py b/tornado/test/httpclient_test.py index 7dae7a799..5e3454056 100644 --- a/tornado/test/httpclient_test.py +++ b/tornado/test/httpclient_test.py @@ -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)