Skip to content

Commit a0e4d77

Browse files
Avoid DeprecationWarning from dpnp.asfarray in tests
1 parent 75f6a27 commit a0e4d77

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dpnp/tests/test_sycl_queue.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,10 @@ def test_invalid_stream(self, stream):
10251025
"asarray_chkfinite",
10261026
"asanyarray",
10271027
"ascontiguousarray",
1028-
"asfarray",
1028+
pytest.param(
1029+
"asfarray",
1030+
marks=pytest.mark.filterwarnings("ignore::DeprecationWarning"),
1031+
),
10291032
"asfortranarray",
10301033
],
10311034
)

dpnp/tests/test_usm_type.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,10 @@ def test_copy_operation(usm_type):
286286
"asarray_chkfinite",
287287
"asanyarray",
288288
"ascontiguousarray",
289-
"asfarray",
289+
pytest.param(
290+
"asfarray",
291+
marks=pytest.mark.filterwarnings("ignore::DeprecationWarning"),
292+
),
290293
"asfortranarray",
291294
],
292295
)

0 commit comments

Comments
 (0)