[pypy-svn] r77554 - pypy/branch/fast-forward/pypy/module/_rawffi/test

afa at codespeak.net afa at codespeak.net
Mon Oct 4 08:24:07 CEST 2010


Author: afa
Date: Mon Oct  4 08:24:04 2010
New Revision: 77554

Modified:
   pypy/branch/fast-forward/pypy/module/_rawffi/test/test__rawffi.py
Log:
Fix test of repr()


Modified: pypy/branch/fast-forward/pypy/module/_rawffi/test/test__rawffi.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/_rawffi/test/test__rawffi.py	(original)
+++ pypy/branch/fast-forward/pypy/module/_rawffi/test/test__rawffi.py	Mon Oct  4 08:24:04 2010
@@ -710,7 +710,7 @@
         # fragile
         S = _rawffi.Structure([('x', 'c'), ('y', 'l')])
         assert (repr(_rawffi.Array((S, 2))) ==
-                "<_rawffi.Array '?' (%d, %d)>" % (4*lsize, lsize))
+                "<_rawffi.Array '\0' (%d, %d)>" % (4*lsize, lsize))
 
         assert (repr(_rawffi.Structure([('x', 'i'), ('yz', 'i')])) ==
                 "<_rawffi.Structure 'x' 'yz' (%d, %d)>" % (2*isize, isize))



More information about the Pypy-commit mailing list