]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Skip testing malformed 204 responses for curl http client 1743/head
authorNick Coutsos <nick@coutsos.com>
Thu, 23 Jun 2016 02:45:53 +0000 (22:45 -0400)
committerNick Coutsos <nick@coutsos.com>
Thu, 23 Jun 2016 02:45:53 +0000 (22:45 -0400)
tornado/test/simple_httpclient_test.py

index 788478082112baaabbad9df98fe98aef3f911b77..a5624af25c3ae487667c01a2431f26aa7c071ea5 100644 (file)
@@ -631,10 +631,11 @@ class HTTP204NoContentTestCase(AsyncHTTPTestCase):
 
     def test_204_invalid_content_length(self):
         # 204 status with non-zero content length is malformed
-        with ExpectLog(gen_log, "Malformed HTTP message"):
-            response = self.fetch("/?error=1")
-            if not self.http1:
-                self.skipTest("requires HTTP/1.x")
+        response = self.fetch("/?error=1")
+        if not self.http1:
+            self.skipTest("requires HTTP/1.x")
+        if self.http_client.configured_class != SimpleAsyncHTTPClient:
+            self.skipTest("curl client accepts invalid headers")
         self.assertEqual(response.code, 599)