mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
convert old fail* assertions to assert*
This commit is contained in:
parent
98d23f2e06
commit
c9c0f201fe
275 changed files with 4540 additions and 4540 deletions
|
@ -73,7 +73,7 @@ class SliceTest(unittest.TestCase):
|
|||
|
||||
obj = AnyClass()
|
||||
s = slice(obj)
|
||||
self.assert_(s.stop is obj)
|
||||
self.assertTrue(s.stop is obj)
|
||||
|
||||
def test_indices(self):
|
||||
self.assertEqual(slice(None ).indices(10), (0, 10, 1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue