Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

TST: mark integrate ctypes test that fails in non-reproducible way as…

… knownfail

See ticket 1684.
  • Loading branch information...
commit a792eb7432c7a3c4aaa0492684ce9777c2d0e483 1 parent 3457c65
@rgommers rgommers authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 scipy/integrate/tests/test_quadpack.py
View
9 scipy/integrate/tests/test_quadpack.py
@@ -8,7 +8,7 @@
import ctypes
_ctypes_missing = False
except ImportError:
- _ctypes_missing = True
+ _ctypes_missing = True
def assert_quad((value, err), tabledValue, errTol=1.5e-8):
assert_(abs(value-tabledValue) < err, (value, tabledValue, err))
@@ -39,13 +39,16 @@ def test_typical(self):
assert_quad(quad(self.lib.cos,0,5),quad(math.cos,0,5)[0])
assert_quad(quad(self.lib.tan,0,1),quad(math.tan,0,1)[0])
- @dec.skipif(_ctypes_missing, msg="Ctypes library could not be found")
+ #@dec.skipif(_ctypes_missing, msg="Ctypes library could not be found")
+ # This doesn't seem to always work. Need a better way to figure out
+ # whether the fast path is called.
+ @dec.knownfailureif(True, msg="Unreliable test, see ticket 1684.")
def test_improvement(self):
import time
start = time.time()
for i in xrange(100):
quad(self.lib.sin, 0, 100)
- fast = time.time() - start
+ fast = time.time() - start
start = time.time()
for i in xrange(100):
quad(math.sin, 0, 100)
Please sign in to comment.
Something went wrong with that request. Please try again.