Skip to content

Commit add573a

Browse files
authored
Correct dependency on numpy version in test_1d_equal_nan_axis0 (#2538)
The `test_1d_equal_nan_axis0` test depends on a fix for numpy#29372. It was not included as part of numpy 2.3.2 release. The PR proposes to updated the expected dependency on numpy version with the fix.
1 parent 7461016 commit add573a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dpnp/tests/test_manipulation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,16 +1850,16 @@ def test_equal_nan(self, eq_nan_kwd):
18501850
expected = numpy.unique(a, **eq_nan_kwd)
18511851
assert_array_equal(result, expected)
18521852

1853-
# TODO: uncomment once numpy 2.3.2 release is published
1854-
# @testing.with_requires("numpy>=2.3.2")
1853+
# TODO: uncomment once numpy 2.4.0 release is published
1854+
# @testing.with_requires("numpy>=2.4.0")
18551855
def test_1d_equal_nan_axis0(self):
18561856
a = numpy.array([numpy.nan, 0, 0, numpy.nan])
18571857
ia = dpnp.array(a)
18581858

18591859
result = dpnp.unique(ia, axis=0, equal_nan=True)
18601860
expected = numpy.unique(a, axis=0, equal_nan=True)
18611861
# TODO: remove when numpy#29372 is released
1862-
if numpy_version() < "2.3.2":
1862+
if numpy_version() < "2.4.0":
18631863
expected = numpy.array([0.0, numpy.nan])
18641864
assert_array_equal(result, expected)
18651865

0 commit comments

Comments
 (0)