diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-16 15:47:17 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-16 15:47:17 (GMT) |
commit | b41c2547e0a5fa75d436d824e5f09f2327354e1a (patch) | |
tree | f52f857ac7239eed3ce868a7030fc2cb6b106b65 /Lib | |
parent | 9d78e416f58a09f01c4bb4f0a97d8cd51b9c098c (diff) | |
download | cpython-b41c2547e0a5fa75d436d824e5f09f2327354e1a.zip cpython-b41c2547e0a5fa75d436d824e5f09f2327354e1a.tar.gz cpython-b41c2547e0a5fa75d436d824e5f09f2327354e1a.tar.bz2 |
Correct long line
Diffstat (limited to 'Lib')
-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 8e8ff72..1fcba88 100644 --- a/Lib/distutils/tests/test_upload.py +++ b/Lib/distutils/tests/test_upload.py @@ -114,7 +114,8 @@ class uploadTestCase(PyPIRCCommandTestCase): # 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) |