[pypy-svn] r50868 - pypy/dist/pypy/lib/app_test/ctypes
fijal at codespeak.net
fijal at codespeak.net
Tue Jan 22 13:32:41 CET 2008
Author: fijal
Date: Tue Jan 22 13:32:40 2008
New Revision: 50868
Modified:
pypy/dist/pypy/lib/app_test/ctypes/test_pointers.py
pypy/dist/pypy/lib/app_test/ctypes/test_structures.py
Log:
Unskip few tests
Modified: pypy/dist/pypy/lib/app_test/ctypes/test_pointers.py
==============================================================================
--- pypy/dist/pypy/lib/app_test/ctypes/test_pointers.py (original)
+++ pypy/dist/pypy/lib/app_test/ctypes/test_pointers.py Tue Jan 22 13:32:40 2008
@@ -59,7 +59,7 @@
assert i.value == 54345
def test_callbacks_with_pointers(self):
- py.test.skip("callbacks not supported")
+ py.test.skip("This test looks bogus (never checks anything)")
# a function type receiving a pointer
PROTOTYPE = CFUNCTYPE(c_int, POINTER(c_int))
Modified: pypy/dist/pypy/lib/app_test/ctypes/test_structures.py
==============================================================================
--- pypy/dist/pypy/lib/app_test/ctypes/test_structures.py (original)
+++ pypy/dist/pypy/lib/app_test/ctypes/test_structures.py Tue Jan 22 13:32:40 2008
@@ -67,7 +67,6 @@
(calcsize("c%c0%c" % (code, code)), code))
def test_unions(self):
- py.test.skip("No unions support")
for code, tp in self.formats.items():
class X(Union):
_fields_ = [("x", c_char),
@@ -107,7 +106,6 @@
assert sizeof(XX) == calcsize("3s 3s 0s")
def test_emtpy(self):
- py.test.skip("No unions support")
# I had problems with these
#
# Although these are patological cases: Empty Structures!
@@ -144,7 +142,6 @@
raises((TypeError, AttributeError), setattr, X.x, "offset", 92)
raises((TypeError, AttributeError), setattr, X.x, "size", 92)
- py.test.skip("No unions support")
class X(Union):
_fields_ = [("x", c_int),
("y", c_char)]
More information about the Pypy-commit
mailing list