~pythonregexp2.7/python/issue2636-11

« back to all changes in this revision

Viewing changes to Lib/test/test_coercion.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-21 17:53:26 UTC
  • mfrom: (39025.1.14 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080921175326-92vaej2hc3yuecxb
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
309
309
            def __cmp__(slf, other):
310
310
                self.assert_(other == 42, 'expected evil_coercer, got %r' % other)
311
311
                return 0
 
312
            __hash__ = None # Invalid cmp makes this unhashable
312
313
        self.assertEquals(cmp(WackyComparer(), evil_coercer), 0)
313
314
        # ...and classic classes too, since that code path is a little different
314
315
        class ClassicWackyComparer: