Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

TST: mark signal.medfilt bug as knownfail on 64-bit Linux. See ticket…

… 1369.

Cherry-picked from 0.10.x branch (9a2dfd6).
  • Loading branch information...
commit edb830a7e2e8d98169a81e41f19f3c77d36e2e72 1 parent 5655bc9
@rgommers rgommers authored
Showing with 12 additions and 2 deletions.
  1. +12 −2 scipy/signal/tests/test_signaltools.py
View
14 scipy/signal/tests/test_signaltools.py
@@ -1,9 +1,10 @@
-
+import sys
+import platform
from decimal import Decimal
from numpy.testing import TestCase, run_module_suite, assert_equal, \
assert_almost_equal, assert_array_equal, assert_array_almost_equal, \
- assert_raises, assert_
+ assert_raises, assert_, dec
import scipy.signal as signal
from scipy.signal import correlate, convolve, convolve2d, \
@@ -14,6 +15,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]
@@ -184,6 +192,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],
Please sign in to comment.
Something went wrong with that request. Please try again.