]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Test on str, not bytes for Python3x 1494/head
authorWillem de Groot <willem@byte.nl>
Tue, 25 Aug 2015 12:05:46 +0000 (14:05 +0200)
committerWillem de Groot <willem@byte.nl>
Tue, 25 Aug 2015 12:05:46 +0000 (14:05 +0200)
tornado/test/httpclient_test.py

index e4325a3c0c1069f3a5ad941c83ef9db1c7c9643e..0d6e6eed53bb6657dee3a6bcd09b5b0ce8470bdf 100644 (file)
@@ -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):