Mercurial > cpython-lru_cache-weakref
changeset 69985:b6e625d7c19f
Merge with 3.2.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Mon, 09 May 2011 18:42:32 +0300 |
| parents | 25298224cb25 (current diff) ff82f912639c (diff) |
| children | 05f3497c32c7 |
| files | |
| diffstat | 1 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/Lib/test/test_heapq.py Mon May 09 23:25:02 2011 +0800 +++ b/Lib/test/test_heapq.py Mon May 09 18:42:32 2011 +0300 @@ -191,17 +191,8 @@ self.assertEqual(list(self.module.nlargest(n, data, key=f)), sorted(data, key=f, reverse=True)[:n]) - -class TestHeapPython(TestHeap): - module = py_heapq - - -@skipUnless(c_heapq, 'requires _heapq') -class TestHeapC(TestHeap): - module = c_heapq - def test_comparison_operator(self): - # Issue 3501: Make sure heapq works with both __lt__ + # Issue 3051: Make sure heapq works with both __lt__ # For python 3.0, __le__ alone is not enough def hsort(data, comp): data = [comp(x) for x in data] @@ -223,6 +214,15 @@ self.assertRaises(TypeError, data, LE) +class TestHeapPython(TestHeap): + module = py_heapq + + +@skipUnless(c_heapq, 'requires _heapq') +class TestHeapC(TestHeap): + module = c_heapq + + #============================================================================== class LenOnly:
