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

arigo at codespeak.net arigo at codespeak.net
Tue Jul 1 19:37:16 CEST 2008


Author: arigo
Date: Tue Jul  1 19:37:15 2008
New Revision: 56209

Modified:
   pypy/dist/lib-python/modified-2.4.1/test/test_repr.py
Log:
Make test a little bit more permissive; on top of PyPy the repr is
"<read-only buffer at...>" instead of "<read-only buffer for...>".


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	Tue Jul  1 19:37:15 2008
@@ -165,7 +165,7 @@
         # XXX doesn't test buffers with no b_base or read-write buffers (see
         # bufferobject.c).  The test is fairly incomplete too.  Sigh.
         x = buffer('foo')
-        self.failUnless(repr(x).startswith('<read-only buffer for 0x'))
+        self.failUnless(repr(x).startswith('<read-only buffer '))
 
     def test_cell(self):
         # XXX Hmm? How to get at a cell object?



More information about the Pypy-commit mailing list