Skip to content
Browse files

changes to unit test

  • Loading branch information...
1 parent 9d854a5 commit d00cd0a5a02011db03a57bb6aa0d7aa32220d138 @jjhelmus committed May 8, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 scipy/ndimage/tests/test_ndimage.py
View
7 scipy/ndimage/tests/test_ndimage.py
@@ -2146,7 +2146,12 @@ def test_zoom_zoomfactor_one(self):
"""Ticket #1122"""
arr = numpy.zeros((1, 5, 5))
zoom = (1.0, 2.0, 2.0)
- out = ndimage.zoom(arr, zoom, cval=7)
+
+ err = numpy.seterr(divide='ignore')
+ try:
+ out = ndimage.zoom(arr, zoom, cval=7)
+ finally:
+ numpy.seterr(**err)
ref = numpy.zeros((1, 10, 10))
assert_array_almost_equal(out, ref)

0 comments on commit d00cd0a

Please sign in to comment.
Something went wrong with that request. Please try again.