[pypy-svn] r51521 - pypy/dist/pypy/lib/app_test/ctypes

fijal at codespeak.net fijal at codespeak.net
Fri Feb 15 13:29:01 CET 2008


Author: fijal
Date: Fri Feb 15 13:29:01 2008
New Revision: 51521

Modified:
   pypy/dist/pypy/lib/app_test/ctypes/test_keepalive.py
Log:
another (passing) test.


Modified: pypy/dist/pypy/lib/app_test/ctypes/test_keepalive.py
==============================================================================
--- pypy/dist/pypy/lib/app_test/ctypes/test_keepalive.py	(original)
+++ pypy/dist/pypy/lib/app_test/ctypes/test_keepalive.py	Fri Feb 15 13:29:01 2008
@@ -27,3 +27,12 @@
         assert x.x._objects is None
         assert p._objects == {'1': u}
         assert x._objects == {'0': p._objects}
+
+    def test_pointer_setitem(self):
+        x = c_int(2)
+        y = c_int(3)
+        p = pointer(x)
+        assert p._objects == {'1':x}
+        p[0] = y
+        assert p._objects.keys() == ['1']
+        assert p._objects['1'].value == 3



More information about the Pypy-commit mailing list