Skip to content

Commit

Permalink
TST: fix pilutil.imresize test. Patch by Mark Wiebe.
Browse files Browse the repository at this point in the history
(backport of r7092)
  • Loading branch information
rgommers committed Jan 30, 2011
1 parent 9b9ae42 commit aa98c01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scipy/misc/tests/test_pilutil.py
Expand Up @@ -21,7 +21,8 @@ class TestPILUtil(TestCase):
def test_imresize(self):
im = np.random.random((10,20))
for T in np.sctypes['float'] + [float]:
im1 = pilutil.imresize(im,T(1.1))
# 1.1 rounds to below 1.1 for float16, 1.101 works
im1 = pilutil.imresize(im,T(1.101))
assert_equal(im1.shape,(11,22))

def test_imresize2(self):
Expand Down

0 comments on commit aa98c01

Please sign in to comment.