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
|
@ -175,9 +175,9 @@ class GetoptTests(unittest.TestCase):
|
|||
|
||||
def test_issue4629(self):
|
||||
longopts, shortopts = getopt.getopt(['--help='], '', ['help='])
|
||||
self.assertEquals(longopts, [('--help', '')])
|
||||
self.assertEqual(longopts, [('--help', '')])
|
||||
longopts, shortopts = getopt.getopt(['--help=x'], '', ['help='])
|
||||
self.assertEquals(longopts, [('--help', 'x')])
|
||||
self.assertEqual(longopts, [('--help', 'x')])
|
||||
self.assertRaises(getopt.GetoptError, getopt.getopt, ['--help='], '', ['help'])
|
||||
|
||||
def test_main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue