summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_extension.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils/tests/test_extension.py')
-rwxr-xr-xLib/distutils/tests/test_extension.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/distutils/tests/test_extension.py b/Lib/distutils/tests/test_extension.py
index c9c8965..e35f273 100755
--- a/Lib/distutils/tests/test_extension.py
+++ b/Lib/distutils/tests/test_extension.py
@@ -28,38 +28,38 @@ class ExtensionTestCase(unittest.TestCase):
'rect', 'rwobject', 'scrap', 'surface', 'surflock',
'time', 'transform']
- self.assertEquals(names, wanted)
+ self.assertEqual(names, wanted)
def test_extension_init(self):
# the first argument, which is the name, must be a string
self.assertRaises(AssertionError, Extension, 1, [])
ext = Extension('name', [])
- self.assertEquals(ext.name, 'name')
+ self.assertEqual(ext.name, 'name')
# the second argument, which is the list of files, must
# be a list of strings
self.assertRaises(AssertionError, Extension, 'name', 'file')
self.assertRaises(AssertionError, Extension, 'name', ['file', 1])
ext = Extension('name', ['file1', 'file2'])
- self.assertEquals(ext.sources, ['file1', 'file2'])
+ self.assertEqual(ext.sources, ['file1', 'file2'])
# others arguments have defaults
for attr in ('include_dirs', 'define_macros', 'undef_macros',
'library_dirs', 'libraries', 'runtime_library_dirs',
'extra_objects', 'extra_compile_args', 'extra_link_args',
'export_symbols', 'swig_opts', 'depends'):
- self.assertEquals(getattr(ext, attr), [])
+ self.assertEqual(getattr(ext, attr), [])
- self.assertEquals(ext.language, None)
- self.assertEquals(ext.optional, None)
+ self.assertEqual(ext.language, None)
+ self.assertEqual(ext.optional, None)
# if there are unknown keyword options, warn about them
with check_warnings() as w:
warnings.simplefilter('always')
ext = Extension('name', ['file1', 'file2'], chic=True)
- self.assertEquals(len(w.warnings), 1)
- self.assertEquals(str(w.warnings[0].message),
+ self.assertEqual(len(w.warnings), 1)
+ self.assertEqual(str(w.warnings[0].message),
"Unknown Extension options: 'chic'")
def test_suite():