summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-05-13 04:42:40 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-05-13 04:42:40 (GMT)
commit849564f874fe55e505078ad09010daa66fc95ecb (patch)
tree4619d23c8814ceec3d1f84d9ff5ebec2322e429f
parent636488043b490ab70413990b458443aa41f504b2 (diff)
downloadcpython-849564f874fe55e505078ad09010daa66fc95ecb.zip
cpython-849564f874fe55e505078ad09010daa66fc95ecb.tar.gz
cpython-849564f874fe55e505078ad09010daa66fc95ecb.tar.bz2
Extend test coverage to include heapifying large heaps
-rw-r--r--Lib/test/test_heapq.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_heapq.py b/Lib/test/test_heapq.py
index 0dcd8c5..b7e8259 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)