~ubuntu-branches/ubuntu/karmic/python3.0/karmic

« back to all changes in this revision

Viewing changes to Lib/test/test_heapq.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-02-16 17:18:23 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090216171823-1d5cm5qnnjvmnzzm
Tags: 3.0.1-0ubuntu1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
234
234
 
235
235
class CmpErr:
236
236
    "Dummy element that always raises an error during comparison"
237
 
    def __cmp__(self, other):
 
237
    def __eq__(self, other):
238
238
        raise ZeroDivisionError
239
 
    __eq__ = __ne__ = __lt__ = __le__ = __gt__ = __ge__ = __cmp__
 
239
    __ne__ = __lt__ = __le__ = __gt__ = __ge__ = __eq__
240
240
 
241
241
def R(seqn):
242
242
    'Regular generator'