[pypy-svn] r73414 - pypy/branch/cpython-extension/pypy/module/cpyext/test

fijal at codespeak.net fijal at codespeak.net
Mon Apr 5 18:00:06 CEST 2010


Author: fijal
Date: Mon Apr  5 18:00:05 2010
New Revision: 73414

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/test/test_stringobject.py
Log:
Silly, fix the test


Modified: pypy/branch/cpython-extension/pypy/module/cpyext/test/test_stringobject.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/test/test_stringobject.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/test/test_stringobject.py	Mon Apr  5 18:00:05 2010
@@ -3,6 +3,7 @@
 from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
 from pypy.module.cpyext.stringobject import new_empty_str
 from pypy.module.cpyext.api import PyStringObject, PyObjectP, PyObject
+from pypy.module.cpyext.pyobject import Py_DecRef
 
 import py
 import sys
@@ -146,5 +147,5 @@
         assert py_str.c_size == 10
         assert py_str.c_buffer[1] == 'b'
         assert py_str.c_buffer[10] == '\x00'
+        Py_DecRef(space, ar[0])
         lltype.free(ar, flavor='raw')
-        



More information about the Pypy-commit mailing list