mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +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
|
@ -423,13 +423,13 @@ class TestTypeAliases(BaseTest):
|
|||
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue