Skip to content

Commit c93abba

Browse files
committed
...
1 parent 170acc7 commit c93abba

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_copies_or_views.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def is_view(func, a, value):
3737
"""Apply `func`, mutate the output; does the input change?"""
3838
b = func(a)
3939
b[0] = value
40-
return a[0] == value, b.dtype == a.dtype
40+
return a[0] == value
4141

4242

4343
@pytest.mark.parametrize('xp_name', LIB_NAMES)
@@ -57,11 +57,10 @@ def test_view_or_copy(inputs, xp_name):
5757

5858
# bare namespace: mutate the output, does the input change?
5959
a = bare_xp.asarray(arr_input, dtype=dtype)
60-
is_view_bare, dtype_same_bare = is_view(bare_func, a, value)
60+
is_view_bare = is_view(bare_func, a, value)
6161

6262
# wrapped namespace: mutate the output, does the input change?
6363
a1 = wrapped_xp.asarray(arr_input, dtype=dtype)
64-
is_view_wrapped, dtype_same_wrapped = is_view(wrapped_func, a1, value)
64+
is_view_wrapped = is_view(wrapped_func, a1, value)
6565

6666
assert is_view_bare == is_view_wrapped
67-
assert dtype_same_bare == dtype_same_wrapped

0 commit comments

Comments
 (0)