Skip to content

Commit

Permalink
v. minor mods to err_msg typos
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabytprowe committed May 1, 2012
1 parent 4dfa763 commit f2c151f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def test_Image_inplace_subtract():
image2 = image2_init_func((2 * ref_array).astype(types[j]))
image2 -= image1
np.testing.assert_array_equal(ref_array.astype(types[i]), image1.array,
err_msg="Inplace add in Image class does not match reference for dtypes = "
err_msg="Inplace subtract in Image class does not match reference for dtypes = "
+str(types[i])+" and "+str(types[j]))

def test_Image_inplace_multiply():
Expand Down Expand Up @@ -380,7 +380,7 @@ def test_Image_inplace_multiply():
image2 = image2_init_func((2 * ref_array).astype(types[j]))
image2 *= image1
np.testing.assert_array_equal((2 * ref_array**2).astype(types[i]), image2.array,
err_msg="Inplace add in Image class does not match reference for dtypes = "
err_msg="Inplace multiply in Image class does not match reference for dtypes = "
+str(types[i])+" and "+str(types[j]))

def test_Image_inplace_divide():
Expand Down Expand Up @@ -408,7 +408,7 @@ def test_Image_inplace_divide():
image2 = image2_init_func((2 * (ref_array+1)**2).astype(types[j]))
image2 /= image1
np.testing.assert_array_equal((2 * (ref_array+1)).astype(types[i]), image2.array,
err_msg="Inplace add in Image class does not match reference for dtypes = "
err_msg="Inplace divide in Image class does not match reference for dtypes = "
+str(types[i])+" and "+str(types[j]))


Expand Down

0 comments on commit f2c151f

Please sign in to comment.