summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_heapq.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-05-11 21:21:23 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-05-11 21:21:23 (GMT)
commit234fb2d503cd8f8bae56eb7fa4d0a88cd1b7c03a (patch)
treef162da1b8eb602ca7e416e648c3ae24ee0674794 /Lib/test/test_heapq.py
parent3a17e2175589e6f4b5945dc661308167347dc22f (diff)
downloadcpython-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.py2
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):