]> granicus.if.org Git - python/commitdiff
Correct long line
authorJason R. Coombs <jaraco@jaraco.com>
Sat, 16 Nov 2013 15:47:17 +0000 (10:47 -0500)
committerJason R. Coombs <jaraco@jaraco.com>
Sat, 16 Nov 2013 15:47:17 +0000 (10:47 -0500)
Lib/distutils/tests/test_upload.py

index 8e8ff720aee6648225ff3380e17d4143f3ae419f..1fcba889b29c49f388b25ee8f6a7edc93c162277 100644 (file)
@@ -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)