summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-11-16 00:41:57 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2013-11-16 00:41:57 (GMT)
commit6f87a08aa70887026f92694ab1bfb9bccf0d7504 (patch)
tree2b2fbca8b5cf2263487c51c1cf9e6d9179444d92 /Lib/distutils
parente9f0311a0fdfb93a0a1b18426a9d7a7903a5ce38 (diff)
downloadcpython-6f87a08aa70887026f92694ab1bfb9bccf0d7504.zip
cpython-6f87a08aa70887026f92694ab1bfb9bccf0d7504.tar.gz
cpython-6f87a08aa70887026f92694ab1bfb9bccf0d7504.tar.bz2
Update more usage of assertEqual
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_archive_util.py4
-rw-r--r--Lib/distutils/tests/test_upload.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/Lib/distutils/tests/test_archive_util.py b/Lib/distutils/tests/test_archive_util.py
index 581c0cc..caa0db2 100644
--- a/Lib/distutils/tests/test_archive_util.py
+++ b/Lib/distutils/tests/test_archive_util.py
@@ -329,8 +329,8 @@ class ArchiveUtilTestCase(support.TempdirManager,
archive = tarfile.open(archive_name)
try:
for member in archive.getmembers():
- self.assertEquals(member.uid, 0)
- self.assertEquals(member.gid, 0)
+ self.assertEqual(member.uid, 0)
+ self.assertEqual(member.gid, 0)
finally:
archive.close()
diff --git a/Lib/distutils/tests/test_upload.py b/Lib/distutils/tests/test_upload.py
index 7d704cf..9a2265e 100644
--- a/Lib/distutils/tests/test_upload.py
+++ b/Lib/distutils/tests/test_upload.py
@@ -115,9 +115,9 @@ class uploadTestCase(PyPIRCCommandTestCase):
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(),
- 'https://pypi.python.org/pypi')
+ 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)
def test_suite():