diff Lib/test/test_optparse.py @ 66310:9fe76c26ea9f

#9424: Replace deprecated assert* methods in the Python test suite.
author Ezio Melotti <ezio.melotti@gmail.com>
date Sat, 20 Nov 2010 19:04:17 +0000
parents 263fada2565d
children 3c9232a684ae
line wrap: on
line diff
--- a/Lib/test/test_optparse.py	Sat Nov 20 18:24:54 2010 +0000
+++ b/Lib/test/test_optparse.py	Sat Nov 20 19:04:17 2010 +0000
@@ -423,13 +423,13 @@
 
     def test_str_aliases_string(self):
         self.parser.add_option("-s", type="str")
-        self.assertEquals(self.parser.get_option("-s").type, "string")
+        self.assertEqual(self.parser.get_option("-s").type, "string")
 
     def test_type_object(self):
         self.parser.add_option("-s", type=str)
-        self.assertEquals(self.parser.get_option("-s").type, "string")
+        self.assertEqual(self.parser.get_option("-s").type, "string")
         self.parser.add_option("-x", type=int)
-        self.assertEquals(self.parser.get_option("-x").type, "int")
+        self.assertEqual(self.parser.get_option("-x").type, "int")
 
 
 # Custom type for testing processing of default values.