mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
#9424: Replace deprecated assert* methods in the Python test suite.
This commit is contained in:
parent
b8bc439b20
commit
b3aedd4862
170 changed files with 2388 additions and 2392 deletions
|
@ -24,7 +24,7 @@ class BuildTestCase(support.TempdirManager,
|
|||
cmd = bdist(dist)
|
||||
cmd.formats = ['msi']
|
||||
cmd.ensure_finalized()
|
||||
self.assertEquals(cmd.formats, ['msi'])
|
||||
self.assertEqual(cmd.formats, ['msi'])
|
||||
|
||||
# what format bdist offers ?
|
||||
# XXX an explicit list in bdist is
|
||||
|
@ -35,7 +35,7 @@ class BuildTestCase(support.TempdirManager,
|
|||
formats.sort()
|
||||
founded = list(cmd.format_command.keys())
|
||||
founded.sort()
|
||||
self.assertEquals(founded, formats)
|
||||
self.assertEqual(founded, formats)
|
||||
|
||||
def test_suite():
|
||||
return unittest.makeSuite(BuildTestCase)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue