Skip to content

Commit aa249bb

Browse files
authored
Fix flaky float equality test (#178)
Signed-off-by: Adam J. Stewart <[email protected]>
1 parent 82975bf commit aa249bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spectral/tests/continuum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def test_in_and_out_same(self):
231231
part = self.image[20:22, 20:22].astype(np.float64)
232232
res = remove_continuum(part, self.bands, out=part)
233233
# Make sure results are sane.
234-
assert (res[1, 1, 200] == 0.8372113957762342)
234+
assert_allclose(res[1, 1, 200], 0.8372113957762342)
235235
assert (res is part)
236236

237237

0 commit comments

Comments
 (0)