mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Fix DeprecationWarnings in test suite
This commit is contained in:
parent
17c93260a6
commit
492b9893e1
4 changed files with 23 additions and 23 deletions
|
@ -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.assertEquals(self.last_open.req.get_method(), 'POST')
|
||||
self.assertEquals(self.last_open.req.get_full_url(),
|
||||
'http://pypi.python.org/pypi')
|
||||
self.assert_(b'xxx' in self.last_open.req.data)
|
||||
self.assertTrue(headers['Content-type'].startswith('multipart/form-data'))
|
||||
self.assertEqual(self.last_open.req.get_method(), 'POST')
|
||||
self.assertEqual(self.last_open.req.get_full_url(),
|
||||
'http://pypi.python.org/pypi')
|
||||
self.assertIn(b'xxx', self.last_open.req.data)
|
||||
|
||||
def test_suite():
|
||||
return unittest.makeSuite(uploadTestCase)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue