mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +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
|
|
@ -234,7 +234,7 @@ class TestBasic(unittest.TestCase):
|
|||
d = deque(data[:i])
|
||||
r = d.reverse()
|
||||
self.assertEqual(list(d), list(reversed(data[:i])))
|
||||
self.assert_(r is None)
|
||||
self.assertIs(r, None)
|
||||
d.reverse()
|
||||
self.assertEqual(list(d), data[:i])
|
||||
self.assertRaises(TypeError, d.reverse, 1) # Arity is zero
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue