Skip to content

Commit 62e31ce

Browse files
committed
Fix broken test
1 parent a421e6b commit 62e31ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

astrowidgets/tests/widget_api_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,10 @@ def test_adding_markers_as_world(self, data, wcs):
303303
self.image.add_markers(mark_coord_table, use_skycoord=True)
304304
result = self.image.get_markers()
305305
# Check the x, y positions as long as we are testing things...
306-
np.testing.assert_allclose(result['x'], marks_pix['x'])
306+
# The first test had one entry that was zero, so any check
307+
# based on rtol will will. Added a small atol to make sure
308+
# the test passes.
309+
np.testing.assert_allclose(result['x'], marks_pix['x'], atol=1e-9)
307310
np.testing.assert_allclose(result['y'], marks_pix['y'])
308311
np.testing.assert_allclose(result['coord'].ra.deg,
309312
mark_coord_table['coord'].ra.deg)

0 commit comments

Comments
 (0)