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_core.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_core.py')
| -rw-r--r-- | tests/test_core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 47fae245..41321f7d 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -89,7 +89,7 @@ class CoreTestCase(support.EnvironGuard, unittest.TestCase): with captured_stdout() as stdout: distutils.core.setup(name='bar') stdout.seek(0) - self.assertEquals(stdout.read(), 'bar\n') + self.assertEqual(stdout.read(), 'bar\n') distutils.core.DEBUG = True try: @@ -99,7 +99,7 @@ class CoreTestCase(support.EnvironGuard, unittest.TestCase): distutils.core.DEBUG = False stdout.seek(0) wanted = "options (after parsing config files):\n" - self.assertEquals(stdout.readlines()[0], wanted) + self.assertEqual(stdout.readlines()[0], wanted) def test_suite(): return unittest.makeSuite(CoreTestCase) |
