mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
#10510: Fix bug in forward port of 2.7 distutils patch.
Pointed out by Arfrever.
This commit is contained in:
parent
9c1dba2758
commit
623ae29469
3 changed files with 77 additions and 3 deletions
|
@ -127,7 +127,7 @@ class uploadTestCase(PyPIRCCommandTestCase):
|
|||
|
||||
# what did we send ?
|
||||
headers = dict(self.last_open.req.headers)
|
||||
self.assertEqual(headers['Content-length'], '2163')
|
||||
self.assertEqual(headers['Content-length'], '2161')
|
||||
content_type = headers['Content-type']
|
||||
self.assertTrue(content_type.startswith('multipart/form-data'))
|
||||
self.assertEqual(self.last_open.req.get_method(), 'POST')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue