Skip to content

Commit c1c26d4

Browse files
committed
platform.machine returns aarch64 for Linux ARM
1 parent 8d19c3c commit c1c26d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygmt/tests/test_x2sys_cross.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def test_x2sys_cross_region_interpolation_numpoints():
271271
)
272272

273273
assert isinstance(output, pd.DataFrame)
274-
if platform.machine() == "arm64":
274+
if platform.machine() in {"aarch64", "arm64"}:
275275
assert output.shape == (3894, 12)
276276
# Check crossover errors (z_X) and mean value of observables (z_M)
277277
npt.assert_allclose(output.z_X.mean(), -138.23215, rtol=1e-4)
@@ -299,7 +299,7 @@ def test_x2sys_cross_trackvalues():
299299
output = x2sys_cross(tracks=["@tut_ship.xyz"], tag=tag, trackvalues=True)
300300

301301
assert isinstance(output, pd.DataFrame)
302-
if platform.machine() == "arm64":
302+
if platform.machine() in {"aarch64", "arm64"}:
303303
assert output.shape == (14374, 12)
304304
# Check mean of track 1 values (z_1) and track 2 values (z_2)
305305
npt.assert_allclose(output.z_1.mean(), -2422.973372, rtol=1e-4)

0 commit comments

Comments
 (0)