From: Willem de Groot Date: Tue, 25 Aug 2015 12:05:46 +0000 (+0200) Subject: Test on str, not bytes for Python3x X-Git-Tag: v4.3.0b1~28^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94fe56920c4d47d2fda3c29d761b005ce68fdda5;p=thirdparty%2Ftornado.git Test on str, not bytes for Python3x --- diff --git a/tornado/test/httpclient_test.py b/tornado/test/httpclient_test.py index e4325a3c0..0d6e6eed5 100644 --- a/tornado/test/httpclient_test.py +++ b/tornado/test/httpclient_test.py @@ -392,7 +392,7 @@ X-XSS-Protection: 1; self.http_client.fetch("http://127.0.0.1:%d/" % port, self.stop) resp = self.wait() resp.rethrow() - self.assertEqual(resp.headers['X-XSS-Protection'], b"1; mode=block") + self.assertEqual(resp.headers['X-XSS-Protection'], "1; mode=block") self.io_loop.remove_handler(sock.fileno()) def test_304_with_content_length(self):