[pypy-svn] r52856 - in pypy/dist/pypy/lib: _ctypes app_test/ctypes
cfbolz at codespeak.net
cfbolz at codespeak.net
Sun Mar 23 10:41:09 CET 2008
Author: cfbolz
Date: Sun Mar 23 10:41:08 2008
New Revision: 52856
Added:
pypy/dist/pypy/lib/app_test/ctypes/test_struct_fields.py
- copied, changed from r52827, pypy/dist/pypy/lib/ctypes/test/test_struct_fields.py
Modified:
pypy/dist/pypy/lib/_ctypes/structure.py
pypy/dist/pypy/lib/app_test/ctypes/description.txt
Log:
port another test file. fix one of them.
Modified: pypy/dist/pypy/lib/_ctypes/structure.py
==============================================================================
--- pypy/dist/pypy/lib/_ctypes/structure.py (original)
+++ pypy/dist/pypy/lib/_ctypes/structure.py Sun Mar 23 10:41:08 2008
@@ -85,7 +85,7 @@
def struct_setattr(self, name, value):
if name == '_fields_':
- if self.__dict__.get('_fields_', None):
+ if self.__dict__.get('_fields_', None) is not None:
raise AttributeError("_fields_ is final")
if self in [v for k, v in value]:
raise AttributeError("Structure or union cannot contain itself")
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:41:08 2008
@@ -15,7 +15,7 @@
test_repr.py # not implemented
test_returnfuncptrs.py
test_struct_fields.py
-test_unaligned_structures.py
+test_unaligned_structures.py # _pack_ not implemented
test_values.py # some strange stuff
test_varsize_struct.py # resize not implemented
test_win32.py # Windows specific
More information about the Pypy-commit
mailing list