diff options
author | Raymond Hettinger <python@rcn.com> | 2015-05-13 04:42:40 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-05-13 04:42:40 (GMT) |
commit | 849564f874fe55e505078ad09010daa66fc95ecb (patch) | |
tree | 4619d23c8814ceec3d1f84d9ff5ebec2322e429f | |
parent | 636488043b490ab70413990b458443aa41f504b2 (diff) | |
download | cpython-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.py | 2 |
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) |