[pypy-svn] r50657 - pypy/branch/applevel-ctypes2/pypy/module/_rawffi/test

arigo at codespeak.net arigo at codespeak.net
Wed Jan 16 11:00:54 CET 2008


Author: arigo
Date: Wed Jan 16 11:00:52 2008
New Revision: 50657

Modified:
   pypy/branch/applevel-ctypes2/pypy/module/_rawffi/test/test__rawffi.py
Log:
Fix test.


Modified: pypy/branch/applevel-ctypes2/pypy/module/_rawffi/test/test__rawffi.py
==============================================================================
--- pypy/branch/applevel-ctypes2/pypy/module/_rawffi/test/test__rawffi.py	(original)
+++ pypy/branch/applevel-ctypes2/pypy/module/_rawffi/test/test__rawffi.py	Wed Jan 16 11:00:52 2008
@@ -446,10 +446,10 @@
                 "<_rawffi.Structure 'x' 'yz' (%d, %d)>" % (2*s, s))
 
         s = _rawffi.Structure([('x', 'i'), ('yz', 'i')])()
-        assert repr(s) == "<_rawffi struct %d>" % (s.buffer,)
+        assert repr(s) == "<_rawffi struct %x>" % (s.buffer,)
         s.free()
         a = _rawffi.Array('i')(5)
-        assert repr(a) == "<_rawffi array %d of length %d>" % (a.buffer,
+        assert repr(a) == "<_rawffi array %x of length %d>" % (a.buffer,
                                                                len(a))
         a.free()
 



More information about the Pypy-commit mailing list