[pypy-svn] pypy jitypes2: long double support does not play well with the jit. It was decided that at the moment we don't support it (at least in jitypes2)

antocuni commits-noreply at bitbucket.org
Tue Jan 18 16:35:14 CET 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r40870:dea0f083557f
Date: 2011-01-18 13:19 +0100
http://bitbucket.org/pypy/pypy/changeset/dea0f083557f/

Log:	long double support does not play well with the jit. It was decided
	that at the moment we don't support it (at least in jitypes2)

diff --git a/lib-python/modified-2.7.0/ctypes/test/test_cfuncs.py b/lib-python/modified-2.7.0/ctypes/test/test_cfuncs.py
--- a/lib-python/modified-2.7.0/ctypes/test/test_cfuncs.py
+++ b/lib-python/modified-2.7.0/ctypes/test/test_cfuncs.py
@@ -3,8 +3,8 @@
 
 import unittest
 from ctypes import *
-
 import _ctypes_test
+from test.test_support import impl_detail
 
 class CFunctions(unittest.TestCase):
     _dll = CDLL(_ctypes_test.__file__)
@@ -158,12 +158,14 @@
         self.assertEqual(self._dll.tf_bd(0, 42.), 14.)
         self.assertEqual(self.S(), 42)
 
+    @impl_detail('long double not supported by PyPy', pypy=False)
     def test_longdouble(self):
         self._dll.tf_D.restype = c_longdouble
         self._dll.tf_D.argtypes = (c_longdouble,)
         self.assertEqual(self._dll.tf_D(42.), 14.)
         self.assertEqual(self.S(), 42)
-
+        
+    @impl_detail('long double not supported by PyPy', pypy=False)
     def test_longdouble_plus(self):
         self._dll.tf_bD.restype = c_longdouble
         self._dll.tf_bD.argtypes = (c_byte, c_longdouble)

diff --git a/lib-python/modified-2.7.0/ctypes/test/test_functions.py b/lib-python/modified-2.7.0/ctypes/test/test_functions.py
--- a/lib-python/modified-2.7.0/ctypes/test/test_functions.py
+++ b/lib-python/modified-2.7.0/ctypes/test/test_functions.py
@@ -8,6 +8,7 @@
 from ctypes import *
 import sys, unittest
 from ctypes.test import xfail
+from test.test_support import impl_detail
 
 try:
     WINFUNCTYPE
@@ -144,6 +145,7 @@
         self.assertEqual(result, -21)
         self.assertEqual(type(result), float)
 
+    @impl_detail('long double not supported by PyPy', pypy=False)
     def test_longdoubleresult(self):
         f = dll._testfunc_D_bhilfD
         f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_longdouble]


More information about the Pypy-commit mailing list