From 849564f874fe55e505078ad09010daa66fc95ecb Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Tue, 12 May 2015 21:42:40 -0700 Subject: [PATCH] Extend test coverage to include heapifying large heaps --- Lib/test/test_heapq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_heapq.py b/Lib/test/test_heapq.py index 0dcd8c5161a..b7e8259f8de 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)