Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-110067: Make max heap methods public and add missing ones#130725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
eccf484beaf915c143ae2167525d1b0b6f3fc46707f4fd94acebbc883cde6c65d2d387a499cd4abe0a9535612068fd1a038ab97c2623cae781db25138cbf13b6f4db461c9285ebe00dcbc0dd66988b2d36efd70c4ba533b160bc35742c46cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -14,7 +14,8 @@ | ||
| # _heapq.nlargest/nsmallest are saved in heapq._nlargest/_smallest when | ||
| # _heapq is imported, so check them there | ||
| func_names = ['heapify', 'heappop', 'heappush', 'heappushpop', 'heapreplace', | ||
| 'heapify_max', 'heappop_max', 'heappush_max', 'heappushpop_max', | ||
| 'heapreplace_max'] | ||
StanFromIreland marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| class TestModules(TestCase): | ||
| def test_py_functions(self): | ||
| @@ -24,7 +25,7 @@ def test_py_functions(self): | ||
| @skipUnless(c_heapq, 'requires _heapq') | ||
| def test_c_functions(self): | ||
| for fname in func_names: | ||
| self.assertEqual(getattr(c_heapq, fname).__module__, '_heapq', fname) | ||
| def load_tests(loader, tests, ignore): | ||
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.