diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-16 15:35:46 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-16 15:35:46 (GMT) |
commit | 9d78e416f58a09f01c4bb4f0a97d8cd51b9c098c (patch) | |
tree | e430d8acaf0ef6597517926737fb6c2a01297c78 /Lib/distutils | |
parent | 13d4853ac05bf74df1c0e66b37bef168c39aa99f (diff) | |
download | cpython-9d78e416f58a09f01c4bb4f0a97d8cd51b9c098c.zip cpython-9d78e416f58a09f01c4bb4f0a97d8cd51b9c098c.tar.gz cpython-9d78e416f58a09f01c4bb4f0a97d8cd51b9c098c.tar.bz2 |
Issue #19586: Update remaining deprecated assertions to their preferred usage.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/tests/test_upload.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_upload.py b/Lib/distutils/tests/test_upload.py index 9a2265e..8e8ff72 100644 --- a/Lib/distutils/tests/test_upload.py +++ b/Lib/distutils/tests/test_upload.py @@ -114,11 +114,11 @@ class uploadTestCase(PyPIRCCommandTestCase): # what did we send ? headers = dict(self.last_open.req.headers) self.assertEqual(headers['Content-length'], '2087') - self.assert_(headers['Content-type'].startswith('multipart/form-data')) + self.assertTrue(headers['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.assert_(b'xxx' in self.last_open.req.data) + self.assertTrue(b'xxx' in self.last_open.req.data) def test_suite(): return unittest.makeSuite(uploadTestCase) |