From 94fe56920c4d47d2fda3c29d761b005ce68fdda5 Mon Sep 17 00:00:00 2001 From: Willem de Groot Date: Tue, 25 Aug 2015 14:05:46 +0200 Subject: [PATCH] Test on str, not bytes for Python3x --- tornado/test/httpclient_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.47.2