[pypy-svn] pypy jitypes2: this is needed for the test to pass in case we run it in isolation (argtypes is set an earlier test)

antocuni commits-noreply at bitbucket.org
Mon Dec 20 13:17:10 CET 2010


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r40141:cae7844e2079
Date: 2010-12-20 13:16 +0100
http://bitbucket.org/pypy/pypy/changeset/cae7844e2079/

Log:	this is needed for the test to pass in case we run it in isolation (argtypes is set an earlier test)

diff --git a/pypy/module/test_lib_pypy/ctypes_tests/test_functions.py b/pypy/module/test_lib_pypy/ctypes_tests/test_functions.py
--- a/pypy/module/test_lib_pypy/ctypes_tests/test_functions.py
+++ b/pypy/module/test_lib_pypy/ctypes_tests/test_functions.py
@@ -213,6 +213,7 @@
 
     def test_errors_1(self):
         f = dll._testfunc_p_p
+        f.argtypes = [POINTER(c_int)]
         f.restype = c_int
 
         class X(Structure):


More information about the Pypy-commit mailing list