[Scipy-svn] r7077 - branches/0.9.x/scipy/signal/tests
scipy-svn at scipy.org
scipy-svn at scipy.org
Sun Jan 23 03:09:36 EST 2011
Author: rgommers
Date: 2011-01-23 02:09:36 -0600 (Sun, 23 Jan 2011)
New Revision: 7077
Modified:
branches/0.9.x/scipy/signal/tests/test_signaltools.py
Log:
TST: Mark medfilt bug as knownfail on 64-bit Linux.
Modified: branches/0.9.x/scipy/signal/tests/test_signaltools.py
===================================================================
--- branches/0.9.x/scipy/signal/tests/test_signaltools.py 2011-01-23 07:20:40 UTC (rev 7076)
+++ branches/0.9.x/scipy/signal/tests/test_signaltools.py 2011-01-23 08:09:36 UTC (rev 7077)
@@ -1,4 +1,5 @@
-
+import sys
+import platform
from decimal import Decimal
from numpy.testing import TestCase, run_module_suite, assert_equal, \
@@ -13,6 +14,13 @@
import numpy as np
+# check if we're on 64-bit Linux, there a medfilt test fails.
+if sys.platform == 'linux2' and platform.architecture()[0] == '64bit':
+ _linux64bit = True
+else:
+ _linux64bit = False
+
+
class _TestConvolve(TestCase):
def test_basic(self):
a = [3,4,5,6,5,4]
@@ -183,6 +191,8 @@
assert_(np.allclose(c, d, rtol=1e-10))
class TestMedFilt(TestCase):
+ @dec.knownfailureif(_linux64bit,
+ "Currently fails intermittently on 64-bit Linux")
def test_basic(self):
f = [[50, 50, 50, 50, 50, 92, 18, 27, 65, 46],
[50, 50, 50, 50, 50, 0, 72, 77, 68, 66],
More information about the Scipy-svn
mailing list