Permalink
Browse files

TST: Mark medfilt bug as knownfail on 64-bit Linux.

  • Loading branch information...
1 parent 484dd62 commit c3b345760f1523c60e2b9f015e97ca62cd3119c9 @rgommers rgommers committed Jan 23, 2011
Showing with 11 additions and 1 deletion.
  1. +11 −1 scipy/signal/tests/test_signaltools.py
@@ -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 @@ def test_random_data(self):
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],

0 comments on commit c3b3457

Please sign in to comment.