Skip to content

Commit 0d48b0b

Browse files
Nush395olivhoenen
authored andcommitted
Update numpy exception version change to 1.25.
1 parent 3591f17 commit 0d48b0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imaspy/test/test_minimal_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_assign_str_1d(minimal, caplog):
6464
# Prevent the expected numpy ComplexWarnings from cluttering pytest output
6565
@pytest.mark.filterwarnings(
6666
"ignore::numpy.ComplexWarning"
67-
if version.parse(np.__version__) < version.parse("2.0.0")
67+
if version.parse(np.__version__) < version.parse("1.25")
6868
else "ignore::numpy.exceptions.ComplexWarning"
6969
)
7070
@pytest.mark.parametrize("typ, max_dim", [("flt", 6), ("cpx", 6), ("int", 3)])
@@ -94,7 +94,7 @@ def test_assign_numeric_types(minimal, caplog, typ, max_dim):
9494
# np allows casting of complex to float or int, but warns:
9595
with pytest.warns(
9696
np.ComplexWarning
97-
if version.parse(np.__version__) < version.parse("2.0.0")
97+
if version.parse(np.__version__) < version.parse("1.25")
9898
else np.exceptions.ComplexWarning
9999
):
100100
caplog.clear()

0 commit comments

Comments
 (0)