Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

TST: mark ndimage test as knownfail on all platforms except OS X.

This test has been reported to fail for a couple of releases on Windows at
least, and now also on Debian (s390x architecture).
  • Loading branch information...
commit 6cc46991facc831818bc1691c6396b13276d38cc 1 parent f55282c
@rgommers rgommers authored
Showing with 9 additions and 6 deletions.
  1. +9 −6 scipy/ndimage/tests/
15 scipy/ndimage/tests/
@@ -1,15 +1,15 @@
""" Testing data types for ndimage calls
-import numpy as np
-from scipy import ndimage
+import sys
-from numpy.testing import (assert_array_almost_equal,
+import numpy as np
+from numpy.testing import (assert_array_almost_equal, dec,
from import assert_true, assert_equal, assert_raises
+from scipy import ndimage
def test_map_coordinates_dts():
# check that ndimage accepts different data types for interpolation
@@ -47,8 +47,11 @@ def test_map_coordinates_dts():
assert_array_almost_equal(these_data, out)
+@dec.knownfailureif(not sys.platform == 'darwin')
def test_uint64_max():
- # Test interpolation respects uint64 max
+ # Test interpolation respects uint64 max. Reported to fail at least on
+ # win32 (due to the 32 bit visual C compiler using signed int64 when
+ # converting between uint64 to double) and Debian on s390x.
big = 2**64-1
arr = np.array([big, big, big], dtype=np.uint64)
# Tests geometric transform (map_coordinates, affine_transform)
Please sign in to comment.
Something went wrong with that request. Please try again.