diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-06-18 18:42:37 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-06-18 18:42:37 (GMT) |
commit | 56fe4749fb79609de7a6ab83f7d444d271f64e38 (patch) | |
tree | 4885e554f20715fbce6b4fbe10033909a41a9936 /Lib/distutils/tests | |
parent | d37de3c41de46ebda801d60b171875352267977d (diff) | |
download | cpython-56fe4749fb79609de7a6ab83f7d444d271f64e38.zip cpython-56fe4749fb79609de7a6ab83f7d444d271f64e38.tar.gz cpython-56fe4749fb79609de7a6ab83f7d444d271f64e38.tar.bz2 |
Issue #27349: Fix typo in distutils upload command
Diffstat (limited to 'Lib/distutils/tests')
-rw-r--r-- | Lib/distutils/tests/test_upload.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_upload.py b/Lib/distutils/tests/test_upload.py index 964aac7..3eecf8a 100644 --- a/Lib/distutils/tests/test_upload.py +++ b/Lib/distutils/tests/test_upload.py @@ -130,13 +130,14 @@ class uploadTestCase(PyPIRCCommandTestCase): # what did we send ? headers = dict(self.last_open.req.headers) - self.assertEqual(headers['Content-length'], '2161') + self.assertEqual(headers['Content-length'], '2162') content_type = headers['Content-type'] self.assertTrue(content_type.startswith('multipart/form-data')) self.assertEqual(self.last_open.req.get_method(), 'POST') expected_url = 'https://pypi.python.org/pypi' self.assertEqual(self.last_open.req.get_full_url(), expected_url) self.assertTrue(b'xxx' in self.last_open.req.data) + self.assertIn(b'protocol_version', self.last_open.req.data) # The PyPI response body was echoed results = self.get_logs(INFO) |