[pypy-svn] r51358 - pypy/dist/pypy/rlib/test
fijal at codespeak.net
fijal at codespeak.net
Sat Feb 9 15:42:33 CET 2008
Author: fijal
Date: Sat Feb 9 15:42:32 2008
New Revision: 51358
Modified:
pypy/dist/pypy/rlib/test/test_rbuffer.py
Log:
fromaddress
Modified: pypy/dist/pypy/rlib/test/test_rbuffer.py
==============================================================================
--- pypy/dist/pypy/rlib/test/test_rbuffer.py (original)
+++ pypy/dist/pypy/rlib/test/test_rbuffer.py Sat Feb 9 15:42:32 2008
@@ -14,3 +14,10 @@
buf.setitem(4, '\x01')
assert buf.getitem(4) == '\x01'
buf.free()
+
+ def test_fromaddress(self):
+ buf = RBuffer(10)
+ buf.setitem(2, '\x03')
+ buf2 = RBuffer(7, buf.address() + 2)
+ assert buf2.getitem(0) == '\x03'
+ buf.free()
More information about the Pypy-commit
mailing list