Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[DO-NOT-MERGE] Debug Azure Pipelines Accept: (see GH-27115)
  • Loading branch information
ambv committed Jul 15, 2021
commit 18cd4c209bfa948527040f985416337fb8896ca8
3 changes: 3 additions & 0 deletions Lib/test/test_httpservers.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,11 +845,14 @@ def test_accept(self):
((('Accept', 'text/html'), ('ACCEPT', 'text/plain')),
'text/html,text/plain'),
)
count = 0
for headers, expected in tests:
count += 1
headers = OrderedDict(headers)
with self.subTest(headers):
res = self.request('/cgi-bin/file6.py', 'GET', headers=headers)
self.assertEqual(http.HTTPStatus.OK, res.status)
print(count, res.length, res.status, res.headers)
expected = f"'HTTP_ACCEPT': {expected!r}"
self.assertIn(expected.encode('ascii'), res.read())

Expand Down