We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dabbf4 commit 5cd4c1eCopy full SHA for 5cd4c1e
1 file changed
tests/test_image.py
@@ -2124,17 +2124,12 @@ def test_Image_inplace_scalar_divide():
2124
# Dividing via array:
2125
image4 = 16*image2
2126
if simple_types[i] is int:
2127
- # FIXME raises error fix
2128
- if is_jax_galsim():
2129
- pass
2130
- else:
+ if not is_jax_galsim():
+ # jax does not raise a type error here
2131
with assert_raises(TypeError):
2132
image4.array /= 2
2133
2134
2135
2136
- with assert_raises(TypeError):
2137
- image4.array[:] /= 2
+ with assert_raises(TypeError):
+ image4.array[:] /= 2
2138
np.testing.assert_array_equal(image4.array, 16*image2.array) # unchanged yet
2139
image4.array //= 2
2140
np.testing.assert_array_equal(image4.array, 8*image2.array)
0 commit comments