Skip to content

Commit be34b6d

Browse files
committed
Update the expected result till the new numpy release with the fix is available
1 parent 2ec6330 commit be34b6d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dpnp/tests/test_manipulation.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1825,13 +1825,17 @@ def test_equal_nan(self, eq_nan_kwd):
18251825
expected = numpy.unique(a, **eq_nan_kwd)
18261826
assert_array_equal(result, expected)
18271827

1828-
@testing.with_requires("numpy>=2.3.2")
1828+
# TODO: uncomment once numpy 2.3.2 release is published
1829+
# @testing.with_requires("numpy>=2.3.2")
18291830
def test_1d_equal_nan_axis0(self):
18301831
a = numpy.array([numpy.nan, 0, 0, numpy.nan])
18311832
ia = dpnp.array(a)
18321833

18331834
result = dpnp.unique(ia, axis=0, equal_nan=True)
18341835
expected = numpy.unique(a, axis=0, equal_nan=True)
1836+
# TODO: remove
1837+
if numpy_version() < "2.3.2":
1838+
expected = numpy.array([0.0, numpy.nan])
18351839
assert_array_equal(result, expected)
18361840

18371841
@testing.with_requires("numpy>=2.0.1")

0 commit comments

Comments
 (0)