File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ def test_command(self):
125125
126126 def test_request_line_trimming (self ):
127127 self .con ._http_vsn_str = 'HTTP/1.1\n '
128- self .con .putrequest ('GET ' , '/' )
128+ self .con .putrequest ('XYZBOGUS ' , '/' )
129129 self .con .endheaders ()
130130 res = self .con .getresponse ()
131131 self .assertEqual (res .status , 501 )
@@ -152,8 +152,9 @@ def test_version_none_get(self):
152152 self .assertEqual (res .status , 501 )
153153
154154 def test_version_none (self ):
155+ # Test that a valid method is rejected when not HTTP/1.x
155156 self .con ._http_vsn_str = ''
156- self .con .putrequest ('PUT ' , '/' )
157+ self .con .putrequest ('CUSTOM ' , '/' )
157158 self .con .endheaders ()
158159 res = self .con .getresponse ()
159160 self .assertEqual (res .status , 400 )
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ Yaniv Aknin
2929Jyrki Alakuijala
3030Steve Alexander
3131Fred Allen
32+ Jeff Allen
3233Ray Allen
3334Billy G. Allie
3435Kevin Altis
Original file line number Diff line number Diff line change @@ -133,6 +133,10 @@ IDLE
133133Tests
134134-----
135135
136+ - Issue #20155: Changed HTTP method names in failing tests in test_httpservers
137+ so that packet filtering software (specifically Windows Base Filtering Engine)
138+ does not interfere with the transaction semantics expected by the tests.
139+
136140- Issue #19493: Refactored the ctypes test package to skip tests explicitly
137141 rather than silently.
138142
You can’t perform that action at this time.
0 commit comments