[Scipy-svn] r6604 - trunk/scipy/fftpack/tests
scipy-svn at scipy.org
scipy-svn at scipy.org
Wed Jul 14 05:28:48 EDT 2010
Author: ptvirtan
Date: 2010-07-14 04:28:47 -0500 (Wed, 14 Jul 2010)
New Revision: 6604
Modified:
trunk/scipy/fftpack/tests/test_basic.py
Log:
BUG: fftpack/tests: fix spurious failures on machines where double==longdouble (fixes #1229)
Thanks to Christoph Gohlke.
Modified: trunk/scipy/fftpack/tests/test_basic.py
===================================================================
--- trunk/scipy/fftpack/tests/test_basic.py 2010-07-13 13:25:27 UTC (rev 6603)
+++ trunk/scipy/fftpack/tests/test_basic.py 2010-07-14 09:28:47 UTC (rev 6604)
@@ -516,7 +516,12 @@
maxnlp = 2000
class TestLongDoubleFailure(TestCase):
+
def test_complex(self):
+ if np.dtype(np.longcomplex).itemsize == np.dtype(np.complex).itemsize:
+ # longdouble == double; so fft is supported
+ return
+
x = np.random.randn(10).astype(np.longdouble) + \
1j * np.random.randn(10).astype(np.longdouble)
@@ -529,6 +534,10 @@
pass
def test_real(self):
+ if np.dtype(np.longdouble).itemsize == np.dtype(np.double).itemsize:
+ # longdouble == double; so fft is supported
+ return
+
x = np.random.randn(10).astype(np.longcomplex)
for f in [fft, ifft]:
More information about the Scipy-svn
mailing list