diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-11-20 19:04:17 +0000 |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-11-20 19:04:17 +0000 |
| commit | df79f96e47490dedbcb676f77c426fad14df1c6f (patch) | |
| tree | 8197c5c83bb18fbf4efc1dddeed1cc44ddc7647b /tests/test_install_lib.py | |
| parent | bbcb611025969e9a4b8a987a7ce1528776740ae2 (diff) | |
| download | python-setuptools-git-df79f96e47490dedbcb676f77c426fad14df1c6f.tar.gz | |
#9424: Replace deprecated assert* methods in the Python test suite.
Diffstat (limited to 'tests/test_install_lib.py')
| -rw-r--r-- | tests/test_install_lib.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_install_lib.py b/tests/test_install_lib.py index 790d4ce3..fddaabe1 100644 --- a/tests/test_install_lib.py +++ b/tests/test_install_lib.py @@ -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 |
