Skip to content

Commit 219a5dc

Browse files
committed
Merge with 3.1.
2 parents 867754e + f9756c2 commit 219a5dc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Lib/test/test_heapq.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,17 +191,8 @@ def test_nlargest(self):
191191
self.assertEqual(list(self.module.nlargest(n, data, key=f)),
192192
sorted(data, key=f, reverse=True)[:n])
193193

194-
195-
class TestHeapPython(TestHeap):
196-
module = py_heapq
197-
198-
199-
@skipUnless(c_heapq, 'requires _heapq')
200-
class TestHeapC(TestHeap):
201-
module = c_heapq
202-
203194
def test_comparison_operator(self):
204-
# Issue 3501: Make sure heapq works with both __lt__
195+
# Issue 3051: Make sure heapq works with both __lt__
205196
# For python 3.0, __le__ alone is not enough
206197
def hsort(data, comp):
207198
data = [comp(x) for x in data]
@@ -223,6 +214,15 @@ def __le__(self, other):
223214
self.assertRaises(TypeError, data, LE)
224215

225216

217+
class TestHeapPython(TestHeap):
218+
module = py_heapq
219+
220+
221+
@skipUnless(c_heapq, 'requires _heapq')
222+
class TestHeapC(TestHeap):
223+
module = c_heapq
224+
225+
226226
#==============================================================================
227227

228228
class LenOnly:

0 commit comments

Comments
 (0)