Skip to content

Commit 00ab8d1

Browse files
authored
Set rtol to 1e-4 to avoid system-dependent floating-point differences (#3004)
1 parent d15c79f commit 00ab8d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygmt/tests/test_x2sys_cross.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,5 +233,5 @@ def test_x2sys_cross_trackvalues():
233233
assert isinstance(output, pd.DataFrame)
234234
assert output.shape == (14338, 12)
235235
# Check mean of track 1 values (z_1) and track 2 values (z_2)
236-
npt.assert_allclose(output.z_1.mean(), -2422.418556)
237-
npt.assert_allclose(output.z_2.mean(), -2402.268364)
236+
npt.assert_allclose(output.z_1.mean(), -2422.418556, rtol=1e-4)
237+
npt.assert_allclose(output.z_2.mean(), -2402.268364, rtol=1e-4)

0 commit comments

Comments
 (0)