#10510: Fix bug in forward port of 2.7 distutils patch.

Pointed out by Arfrever.
This commit is contained in:
R David Murray 2014-09-28 11:01:11 -04:00
parent 9c1dba2758
commit 623ae29469
3 changed files with 77 additions and 3 deletions

View file

@ -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')