[Python-checkins] cpython: Issue #19586: Update remaining deprecated assertions to their preferred usage.
jason.coombs
python-checkins at python.org
Sat Nov 16 16:36:07 CET 2013
http://hg.python.org/cpython/rev/ff471d8526a8
changeset: 87151:ff471d8526a8
user: Jason R. Coombs <jaraco at jaraco.com>
date: Sat Nov 16 10:35:46 2013 -0500
summary:
Issue #19586: Update remaining deprecated assertions to their preferred usage.
files:
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
--- a/Lib/distutils/tests/test_upload.py
+++ b/Lib/distutils/tests/test_upload.py
@@ -114,11 +114,11 @@
# 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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list