mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Issue 21424: Apply the nlargest() optimizations to nsmallest() as well.
This commit is contained in:
parent
3a17e21755
commit
234fb2d503
4 changed files with 138 additions and 118 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue