mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +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
|
@ -19,8 +19,8 @@ class InstallLibTestCase(support.TempdirManager,
|
|||
cmd = install_lib(dist)
|
||||
|
||||
cmd.finalize_options()
|
||||
self.assertEquals(cmd.compile, 1)
|
||||
self.assertEquals(cmd.optimize, 0)
|
||||
self.assertEqual(cmd.compile, 1)
|
||||
self.assertEqual(cmd.optimize, 0)
|
||||
|
||||
# optimize must be 0, 1, or 2
|
||||
cmd.optimize = 'foo'
|
||||
|
@ -30,7 +30,7 @@ class InstallLibTestCase(support.TempdirManager,
|
|||
|
||||
cmd.optimize = '2'
|
||||
cmd.finalize_options()
|
||||
self.assertEquals(cmd.optimize, 2)
|
||||
self.assertEqual(cmd.optimize, 2)
|
||||
|
||||
@unittest.skipUnless(not sys.dont_write_bytecode,
|
||||
'byte-compile not supported')
|
||||
|
@ -77,7 +77,7 @@ class InstallLibTestCase(support.TempdirManager,
|
|||
cmd.distribution.script_name = 'setup.py'
|
||||
|
||||
# get_input should return 2 elements
|
||||
self.assertEquals(len(cmd.get_inputs()), 2)
|
||||
self.assertEqual(len(cmd.get_inputs()), 2)
|
||||
|
||||
def test_dont_write_bytecode(self):
|
||||
# makes sure byte_compile is not used
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue