[pypy-commit] pypy default: c_longdouble is not supported by PyPy. Skip a related test

antocuni noreply at buildbot.pypy.org
Mon Feb 27 10:50:25 CET 2012

Author: Antonio Cuni <anto.cuni at gmail.com>
Changeset: r52917:c80ff2d04fb3
Date: 2012-02-27 10:50 +0100

Log:	c_longdouble is not supported by PyPy. Skip a related test

diff --git a/lib-python/modified-2.7/ctypes/test/test_arrays.py b/lib-python/modified-2.7/ctypes/test/test_arrays.py
--- a/lib-python/modified-2.7/ctypes/test/test_arrays.py
+++ b/lib-python/modified-2.7/ctypes/test/test_arrays.py
@@ -1,12 +1,23 @@
 import unittest
 from ctypes import *
+from test.test_support import impl_detail
 formats = "bBhHiIlLqQfd"
+# c_longdouble commented out for PyPy, look at the commend in test_longdouble
 formats = c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, \
-          c_long, c_ulonglong, c_float, c_double, c_longdouble
+          c_long, c_ulonglong, c_float, c_double #, c_longdouble
 class ArrayTestCase(unittest.TestCase):
+    @impl_detail('long double not supported by PyPy', pypy=False)
+    def test_longdouble(self):
+        """
+        This test is empty. It's just here to remind that we commented out
+        c_longdouble in "formats". If pypy will ever supports c_longdouble, we
+        should kill this test and uncomment c_longdouble inside formats.
+        """
     def test_simple(self):
         # create classes holding simple numeric types, and check
         # various properties.

More information about the pypy-commit mailing list