From: Raymond Hettinger Date: Wed, 13 May 2015 04:42:40 +0000 (-0700) Subject: Extend test coverage to include heapifying large heaps X-Git-Tag: v3.5.0b1~175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=849564f874fe55e505078ad09010daa66fc95ecb;p=thirdparty%2FPython%2Fcpython.git Extend test coverage to include heapifying large heaps --- diff --git a/Lib/test/test_heapq.py b/Lib/test/test_heapq.py index 0dcd8c5161ad..b7e8259f8def 100644 --- a/Lib/test/test_heapq.py +++ b/Lib/test/test_heapq.py @@ -65,7 +65,7 @@ class TestHeap: self.assertTrue(heap[parentpos] <= item) def test_heapify(self): - for size in range(30): + for size in list(range(30)) + [20000]: heap = [random.random() for dummy in range(size)] self.module.heapify(heap) self.check_invariant(heap)