mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -385,8 +385,8 @@ class TestBuggyCases(GetSourceBase):
|
|||
self.assertRaises(IOError, inspect.findsource, co)
|
||||
self.assertRaises(IOError, inspect.getsource, co)
|
||||
linecache.cache[co.co_filename] = (1, None, lines, co.co_filename)
|
||||
self.assertEquals(inspect.findsource(co), (lines,0))
|
||||
self.assertEquals(inspect.getsource(co), lines[0])
|
||||
self.assertEqual(inspect.findsource(co), (lines,0))
|
||||
self.assertEqual(inspect.getsource(co), lines[0])
|
||||
|
||||
# Helper for testing classify_class_attrs.
|
||||
def attrs_wo_objs(cls):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue