[pypy-svn] r78906 - pypy/branch/fast-forward/pypy/module/test_lib_pypy/ctypes_tests
afa at codespeak.net
afa at codespeak.net
Tue Nov 9 10:10:49 CET 2010
Author: afa
Date: Tue Nov 9 10:10:48 2010
New Revision: 78906
Modified:
pypy/branch/fast-forward/pypy/module/test_lib_pypy/ctypes_tests/test_structures.py
Log:
Don't test c_longdouble in Structures:
struct.calcsize cannot handle it :-(
Modified: pypy/branch/fast-forward/pypy/module/test_lib_pypy/ctypes_tests/test_structures.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/test_lib_pypy/ctypes_tests/test_structures.py (original)
+++ pypy/branch/fast-forward/pypy/module/test_lib_pypy/ctypes_tests/test_structures.py Tue Nov 9 10:10:48 2010
@@ -57,7 +57,6 @@
"Q": c_ulonglong,
"f": c_float,
"d": c_double,
- "g": c_longdouble,
}
def test_simple_structs(self):
@@ -66,7 +65,7 @@
_fields_ = [("x", c_char),
("y", tp)]
assert (sizeof(X), code) == (
- (calcsize("c%c0%c" % (code, code)), code))
+ (calcsize("c%c" % (code,)), code))
def test_unions(self):
for code, tp in self.formats.items():
More information about the Pypy-commit
mailing list