Skip to content

Commit d1d79d2

Browse files
committed
Remove workarounds for NumPy < 2.0
1 parent 1abd1f2 commit d1d79d2

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

pygmt/conftest.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

pygmt/tests/test_clib_to_numpy.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44

55
import datetime
6-
import sys
76

87
import numpy as np
98
import numpy.testing as npt
@@ -52,14 +51,7 @@ def _check_result(result, expected_dtype):
5251
@pytest.mark.parametrize(
5352
("data", "expected_dtype"),
5453
[
55-
# TODO(NumPy>=2.0): Remove the if-else statement after NumPy>=2.0.
56-
pytest.param(
57-
[1, 2, 3],
58-
np.int32
59-
if sys.platform == "win32" and Version(np.__version__) < Version("2.0")
60-
else np.int64,
61-
id="int",
62-
),
54+
pytest.param([1, 2, 3], np.int64, id="int"),
6355
pytest.param([1.0, 2.0, 3.0], np.float64, id="float"),
6456
pytest.param(
6557
[complex(+1), complex(-2j), complex("-Infinity+NaNj")],

0 commit comments

Comments
 (0)