From: Ben Darnell Date: Sun, 1 May 2011 21:09:11 +0000 (-0700) Subject: Make a recently-added test pass in python3 X-Git-Tag: v2.0.0~85^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=338ba140ecd9788052d316936add0170a388aac4;p=thirdparty%2Ftornado.git Make a recently-added test pass in python3 --- diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py index 9034ec6ba..fb56f6e75 100644 --- a/tornado/test/simple_httpclient_test.py +++ b/tornado/test/simple_httpclient_test.py @@ -223,6 +223,6 @@ class SimpleHTTPClientTestCase(AsyncHTTPTestCase, LogTrapTestCase): url = self.get_url("/auth").replace("http://", "http://me:secret@") self.http_client.fetch(url, self.stop) response = self.wait() - self.assertEqual("Basic " + base64.b64encode("me:secret"), + self.assertEqual(b("Basic ") + base64.b64encode(b("me:secret")), response.body)