diff options
author | Raymond Hettinger <python@rcn.com> | 2014-05-11 21:21:23 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-05-11 21:21:23 (GMT) |
commit | 234fb2d503cd8f8bae56eb7fa4d0a88cd1b7c03a (patch) | |
tree | f162da1b8eb602ca7e416e648c3ae24ee0674794 /Lib/test/test_heapq.py | |
parent | 3a17e2175589e6f4b5945dc661308167347dc22f (diff) | |
download | cpython-234fb2d503cd8f8bae56eb7fa4d0a88cd1b7c03a.zip cpython-234fb2d503cd8f8bae56eb7fa4d0a88cd1b7c03a.tar.gz cpython-234fb2d503cd8f8bae56eb7fa4d0a88cd1b7c03a.tar.bz2 |
Issue 21424: Apply the nlargest() optimizations to nsmallest() as well.
Diffstat (limited to 'Lib/test/test_heapq.py')
-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 1735a19..59c7029 100644 --- a/Lib/test/test_heapq.py +++ b/Lib/test/test_heapq.py @@ -13,7 +13,7 @@ c_heapq = support.import_fresh_module('heapq', fresh=['_heapq']) # _heapq.nlargest/nsmallest are saved in heapq._nlargest/_smallest when # _heapq is imported, so check them there func_names = ['heapify', 'heappop', 'heappush', 'heappushpop', - 'heapreplace', '_nsmallest'] + 'heapreplace', '_heapreplace_max'] class TestModules(TestCase): def test_py_functions(self): |