[Python-checkins] cpython: Correct long line
jason.coombs
python-checkins at python.org
Sat Nov 16 16:47:23 CET 2013
http://hg.python.org/cpython/rev/8e7a738c3840
changeset: 87152:8e7a738c3840
user: Jason R. Coombs <jaraco at jaraco.com>
date: Sat Nov 16 10:47:17 2013 -0500
summary:
Correct long line
files:
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
--- a/Lib/distutils/tests/test_upload.py
+++ b/Lib/distutils/tests/test_upload.py
@@ -114,7 +114,8 @@
# what did we send ?
headers = dict(self.last_open.req.headers)
self.assertEqual(headers['Content-length'], '2087')
- self.assertTrue(headers['Content-type'].startswith('multipart/form-data'))
+ 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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list