]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Mark another test as http/1 only
authorBen Darnell <ben@bendarnell.com>
Sun, 25 Oct 2015 16:59:00 +0000 (12:59 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 25 Oct 2015 16:59:00 +0000 (12:59 -0400)
tornado/test/httpclient_test.py

index 79de77bb1a1c9a26b078a1e1087fdaff461cb542..e7551c93bb7373cdf505ef58c99dcf3bfffe89b5 100644 (file)
@@ -379,6 +379,8 @@ Transfer-Encoding: chunked
         sock, port = bind_unused_port()
         with closing(sock):
             def write_response(stream, request_data):
+                if b"HTTP/1." not in request_data:
+                    self.skipTest("requires HTTP/1.x")
                 stream.write(b"""\
 HTTP/1.1 200 OK
 X-XSS-Protection: 1;