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

pedronis at codespeak.net pedronis at codespeak.net
Sat Oct 29 00:51:41 CEST 2005


Author: pedronis
Date: Sat Oct 29 00:51:41 2005
New Revision: 19136

Modified:
   pypy/dist/lib-python/modified-2.4.1/test/test_repr.py
Log:
our builtin method/function are mostly like conventional functions, so we cannot reasonably have separate repr,
in Paris we converged to the idea that is more important to have the repr consistent with the one for
normal user functions/methods. Adjust this test to pass again with the changes that were made there.



Modified: pypy/dist/lib-python/modified-2.4.1/test/test_repr.py
==============================================================================
--- pypy/dist/lib-python/modified-2.4.1/test/test_repr.py	(original)
+++ pypy/dist/lib-python/modified-2.4.1/test/test_repr.py	Sat Oct 29 00:51:41 2005
@@ -135,7 +135,7 @@
         eq(repr(hash), '<built-in function hash>')
         # Methods
         self.failUnless(repr(''.split).find(
-            'method split of str object at 0x') > -1)
+            "bound method str.split of '' at 0x") > -1)
 
     def test_xrange(self):
         import warnings
@@ -174,7 +174,7 @@
     def test_descriptors(self):
         eq = self.assertEquals
         # method descriptors
-        eq(repr(dict.items), "<method 'items' of 'dict' objects>")
+        eq(repr(dict.items), "<unbound method dict.items>")
         # XXX member descriptors
         # XXX attribute descriptors
         # XXX slot descriptors



More information about the Pypy-commit mailing list