[pypy-svn] r52855 - in pypy/dist/pypy/lib: _ctypes app_test/ctypes
cfbolz at codespeak.net
cfbolz at codespeak.net
Sun Mar 23 10:26:02 CET 2008
Author: cfbolz
Date: Sun Mar 23 10:26:00 2008
New Revision: 52855
Added:
pypy/dist/pypy/lib/app_test/ctypes/test_varsize_struct.py
- copied, changed from r52827, pypy/dist/pypy/lib/ctypes/test/test_varsize_struct.py
Modified:
pypy/dist/pypy/lib/_ctypes/array.py
pypy/dist/pypy/lib/app_test/ctypes/description.txt
Log:
port another file. fix one problem
Modified: pypy/dist/pypy/lib/_ctypes/array.py
==============================================================================
--- pypy/dist/pypy/lib/_ctypes/array.py (original)
+++ pypy/dist/pypy/lib/_ctypes/array.py Sun Mar 23 10:26:00 2008
@@ -189,6 +189,8 @@
ARRAY_CACHE = {}
def create_array_type(base, length):
+ if length < 0:
+ raise ValueError("Array length must be >= 0")
key = (base, length)
try:
return ARRAY_CACHE[key]
Modified: pypy/dist/pypy/lib/app_test/ctypes/description.txt
==============================================================================
--- pypy/dist/pypy/lib/app_test/ctypes/description.txt (original)
+++ pypy/dist/pypy/lib/app_test/ctypes/description.txt Sun Mar 23 10:26:00 2008
@@ -14,9 +14,8 @@
test_refcounts.py # CPython specific
test_repr.py # not implemented
test_returnfuncptrs.py
-test_simplesubclasses.py
test_struct_fields.py
test_unaligned_structures.py
test_values.py # some strange stuff
-test_varsize_struct.py
+test_varsize_struct.py # resize not implemented
test_win32.py # Windows specific
More information about the Pypy-commit
mailing list