[pypy-svn] r18197 - pypy/dist/lib-python/modified-2.4.1/test

ac at codespeak.net ac at codespeak.net
Wed Oct 5 15:09:58 CEST 2005


Author: ac
Date: Wed Oct  5 15:09:58 2005
New Revision: 18197

Modified:
   pypy/dist/lib-python/modified-2.4.1/test/mapping_tests.py
   pypy/dist/lib-python/modified-2.4.1/test/test_dict.py
Log:
Do not rely on __eq__ allways being used when comparing mappings.

Modified: pypy/dist/lib-python/modified-2.4.1/test/mapping_tests.py
==============================================================================
--- pypy/dist/lib-python/modified-2.4.1/test/mapping_tests.py	(original)
+++ pypy/dist/lib-python/modified-2.4.1/test/mapping_tests.py	Wed Oct  5 15:09:58 2005
@@ -640,7 +640,7 @@
         class Exc(Exception): pass
 
         class BadCmp(object):
-            def __eq__(self, other):
+            def __cmp__(self, other):
                 raise Exc()
 
         d1 = self._full_mapping({BadCmp(): 1})

Modified: pypy/dist/lib-python/modified-2.4.1/test/test_dict.py
==============================================================================
--- pypy/dist/lib-python/modified-2.4.1/test/test_dict.py	(original)
+++ pypy/dist/lib-python/modified-2.4.1/test/test_dict.py	Wed Oct  5 15:09:58 2005
@@ -383,7 +383,7 @@
         class Exc(Exception): pass
 
         class BadCmp(object):
-            def __eq__(self, other):
+            def __cmp__(self, other):
                 raise Exc()
 
         d1 = {BadCmp(): 1}



More information about the Pypy-commit mailing list