Skip to content

Commit 8e7d554

Browse files
BUG: fix asanyarray fallback + disabled tests (#940)
* BUG: fix asanyarray fallback * disabled tests * enabled tests * enabled tests for gpu Co-authored-by: Alexander-Makaryev <[email protected]>
1 parent 22f1f6d commit 8e7d554

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

dpnp/dpnp_iface_arraycreation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ def asanyarray(a, dtype=None, order='C'):
249249
return a
250250

251251
if order != 'C':
252-
checker_throw_value_error("asanyarray", "order", order, 'C')
253-
254-
return array(a, dtype=dtype, order=order)
252+
pass
253+
else:
254+
return array(a, dtype=dtype, order=order)
255255

256256
return call_origin(numpy.asanyarray, a, dtype, order)
257257

tests/skipped_tests_gpu.tbl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ tests/third_party/cupy/core_tests/test_ndarray_math.py::TestRoundHalfway_param_0
3535
tests/third_party/cupy/core_tests/test_ndarray_math.py::TestRoundHalfway_param_1_{decimals=-2}::test_round_halfway_float
3636
tests/third_party/cupy/core_tests/test_ndarray_math.py::TestRoundHalfway_param_2_{decimals=-1}::test_round_halfway_float
3737
tests/third_party/cupy/core_tests/test_ndarray_math.py::TestRoundHalfway_param_3_{decimals=0}::test_round_halfway_float
38-
tests/third_party/cupy/creation_tests/test_from_data.py::TestFromData::test_asanyarray_with_order
39-
tests/third_party/cupy/creation_tests/test_from_data.py::TestFromData::test_asarray_from_numpy
4038
tests/third_party/cupy/creation_tests/test_from_data.py::TestFromData::test_asarray_preserves_numpy_array_order
4139
tests/third_party/cupy/creation_tests/test_from_data.py::TestFromData::test_asarray_with_order
4240
tests/third_party/cupy/creation_tests/test_from_data.py::TestFromData::test_ascontiguousarray_on_contiguous_array

0 commit comments

Comments
 (0)