summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-11-16 00:38:51 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2013-11-16 00:38:51 (GMT)
commite9f0311a0fdfb93a0a1b18426a9d7a7903a5ce38 (patch)
treee239f9cd0df3e2481cb666074c9f49f89f9eefbe
parent75c40aed55b1fe5482da4ae36e4cde52cc3f9cc1 (diff)
downloadcpython-e9f0311a0fdfb93a0a1b18426a9d7a7903a5ce38.zip
cpython-e9f0311a0fdfb93a0a1b18426a9d7a7903a5ce38.tar.gz
cpython-e9f0311a0fdfb93a0a1b18426a9d7a7903a5ce38.tar.bz2
Use preferred assertEqual
-rw-r--r--Lib/distutils/tests/test_dist.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/Lib/distutils/tests/test_dist.py b/Lib/distutils/tests/test_dist.py
index 102c553..b7fd3fb 100644
--- a/Lib/distutils/tests/test_dist.py
+++ b/Lib/distutils/tests/test_dist.py
@@ -240,7 +240,7 @@ class DistributionTestCase(support.LoggingSilencer,
os.path.expanduser = old_expander
# make sure --no-user-cfg disables the user cfg file
- self.assertEquals(len(all_files)-1, len(files))
+ self.assertEqual(len(all_files)-1, len(files))
class MetadataTestCase(support.TempdirManager, support.EnvironGuard,
unittest.TestCase):
@@ -435,14 +435,14 @@ class MetadataTestCase(support.TempdirManager, support.EnvironGuard,
PKG_INFO.seek(0)
metadata.read_pkg_file(PKG_INFO)
- self.assertEquals(metadata.name, "package")
- self.assertEquals(metadata.version, "1.0")
- self.assertEquals(metadata.description, "xxx")
- self.assertEquals(metadata.download_url, 'http://example.com')
- self.assertEquals(metadata.keywords, ['one', 'two'])
- self.assertEquals(metadata.platforms, ['UNKNOWN'])
- self.assertEquals(metadata.obsoletes, None)
- self.assertEquals(metadata.requires, ['foo'])
+ self.assertEqual(metadata.name, "package")
+ self.assertEqual(metadata.version, "1.0")
+ self.assertEqual(metadata.description, "xxx")
+ self.assertEqual(metadata.download_url, 'http://example.com')
+ self.assertEqual(metadata.keywords, ['one', 'two'])
+ self.assertEqual(metadata.platforms, ['UNKNOWN'])
+ self.assertEqual(metadata.obsoletes, None)
+ self.assertEqual(metadata.requires, ['foo'])
def test_suite():
suite = unittest.TestSuite()