changeset: 91363:e67ad57eed26 parent: 91360:e1d81c32f13d parent: 91362:ffdd2d0b0049 user: R David Murray date: Tue Jun 24 16:49:04 2014 -0400 files: Misc/ACKS Misc/NEWS description: merge: #20155: use fake HTTP method names so windows doesn't hang the tests. diff -r e1d81c32f13d -r e67ad57eed26 Lib/test/test_httpservers.py --- a/Lib/test/test_httpservers.py Tue Jun 24 22:38:31 2014 +0200 +++ b/Lib/test/test_httpservers.py Tue Jun 24 16:49:04 2014 -0400 @@ -125,7 +125,7 @@ def test_request_line_trimming(self): self.con._http_vsn_str = 'HTTP/1.1\n' - self.con.putrequest('GET', '/') + self.con.putrequest('XYZBOGUS', '/') self.con.endheaders() res = self.con.getresponse() self.assertEqual(res.status, 501) @@ -152,8 +152,9 @@ self.assertEqual(res.status, 501) def test_version_none(self): + # Test that a valid method is rejected when not HTTP/1.x self.con._http_vsn_str = '' - self.con.putrequest('PUT', '/') + self.con.putrequest('CUSTOM', '/') self.con.endheaders() res = self.con.getresponse() self.assertEqual(res.status, 400) diff -r e1d81c32f13d -r e67ad57eed26 Misc/ACKS --- a/Misc/ACKS Tue Jun 24 22:38:31 2014 +0200 +++ b/Misc/ACKS Tue Jun 24 16:49:04 2014 -0400 @@ -29,6 +29,7 @@ Jyrki Alakuijala Steve Alexander Fred Allen +Jeff Allen Ray Allen Billy G. Allie Kevin Altis diff -r e1d81c32f13d -r e67ad57eed26 Misc/NEWS --- a/Misc/NEWS Tue Jun 24 22:38:31 2014 +0200 +++ b/Misc/NEWS Tue Jun 24 16:49:04 2014 -0400 @@ -612,6 +612,10 @@ Tests ----- +- Issue #20155: Changed HTTP method names in failing tests in test_httpservers + so that packet filtering software (specifically Windows Base Filtering Engine) + does not interfere with the transaction semantics expected by the tests. + - Issue #19493: Refactored the ctypes test package to skip tests explicitly rather than silently.