sizeof(long double)==sizeof(double) in MSVC conficts with numpy built with MinGW
authordalcinl <none@none>
Wed, 28 Apr 2010 23:30:58 +0000 (20:30 -0300)
committerdalcinl <none@none>
Wed, 28 Apr 2010 23:30:58 +0000 (20:30 -0300)
tests/run/numpy_test.pyx

index 2f9801d9be463d7ebe6a6a885c4dfec180b74f37..104670ba0ae4b0b18fe705cb1b390aa69d1a872b 100644 (file)
@@ -326,6 +326,10 @@ def inc1_float64_t(np.ndarray[np.float64_t] arr):       arr[1] += 1
 
     
 def test_dtype(dtype, inc1):
+    if dtype in ("g", np.longdouble,
+                 "G", np.clongdouble):
+        if sizeof(double) == sizeof(long double): # MSVC
+            return
     if dtype in (b'F', b'D', b'G'):
         a = np.array([0, 10+10j], dtype=dtype)
         inc1(a)