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)