mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +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
|
@ -128,9 +128,9 @@ class CodeTest(unittest.TestCase):
|
|||
|
||||
def test_newempty(self):
|
||||
co = _testcapi.code_newempty("filename", "funcname", 15)
|
||||
self.assertEquals(co.co_filename, "filename")
|
||||
self.assertEquals(co.co_name, "funcname")
|
||||
self.assertEquals(co.co_firstlineno, 15)
|
||||
self.assertEqual(co.co_filename, "filename")
|
||||
self.assertEqual(co.co_name, "funcname")
|
||||
self.assertEqual(co.co_firstlineno, 15)
|
||||
|
||||
|
||||
class CodeWeakRefTest(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue