mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +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
|
|
@ -510,7 +510,7 @@ class ScopeTests(unittest.TestCase):
|
|||
def f(self):
|
||||
return x
|
||||
|
||||
self.assertEquals(x, 12) # Used to raise UnboundLocalError
|
||||
self.assertEqual(x, 12) # Used to raise UnboundLocalError
|
||||
finally:
|
||||
sys.settrace(None)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue