diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-06-13 06:03:25 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-06-13 06:03:25 +0000 |
commit | 04097a628213df725c43b62b7be934e0bff6fb16 (patch) | |
tree | 956e363e54796552360c09fca9bb51228e9ba7d4 | |
parent | 705cd06f9122897ca5137b4da0cb4f1f163a9ceb (diff) | |
download | cpython-git-04097a628213df725c43b62b7be934e0bff6fb16.tar.gz |
Fix typo in method name. The LT class implemented less than. The LE class
should implement less than or equal to (as the code does).
-rw-r--r-- | Lib/test/test_heapq.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_heapq.py b/Lib/test/test_heapq.py index 6f05e171fa..f91d86db0d 100644 --- a/Lib/test/test_heapq.py +++ b/Lib/test/test_heapq.py @@ -210,7 +210,7 @@ class TestHeapC(TestHeap): class LE: def __init__(self, x): self.x = x - def __lt__(self, other): + def __le__(self, other): return self.x >= other.x data = [random.random() for i in range(100)] target = sorted(data, reverse=True) |