From a0330fcc0259e1a6ac07cb77f7b75f4af86826e1 Mon Sep 17 00:00:00 2001 From: Nick Coutsos Date: Wed, 22 Jun 2016 22:45:53 -0400 Subject: [PATCH] Skip testing malformed 204 responses for curl http client --- tornado/test/simple_httpclient_test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py index 788478082..a5624af25 100644 --- a/tornado/test/simple_httpclient_test.py +++ b/tornado/test/simple_httpclient_test.py @@ -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) -- 2.47.2