mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +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
|
@ -46,7 +46,7 @@ class TestHeap(unittest.TestCase):
|
|||
for pos, item in enumerate(heap):
|
||||
if pos: # pos 0 has no parent
|
||||
parentpos = (pos-1) >> 1
|
||||
self.assert_(heap[parentpos] <= item)
|
||||
self.assertTrue(heap[parentpos] <= item)
|
||||
|
||||
def test_heapify(self):
|
||||
for size in range(30):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue