Skip to content

Commit 85c1a5f

Browse files
committed
Platform compat test
1 parent de6e41d commit 85c1a5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/copy_view/index/test_index.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ def test_constructor_copy_input_ndarray_default():
160160

161161
def test_series_from_temporary_index_readonly_data():
162162
# GH 63370
163-
arr = np.array([0, 1])
163+
arr = np.array([0, 1], dtype=np.dtype(np.int8))
164164
arr.flags.writeable = False
165165
ser = Series(Index(arr))
166166
assert not np.shares_memory(arr, get_array(ser))
167167
assert ser._mgr._has_no_reference(0)
168-
ser[[False, True]] = [0, 2]
169-
expected = Series([0, 2])
168+
ser[[False, True]] = np.array([0, 2], dtype=np.dtype(np.int8))
169+
expected = Series([0, 2], dtype=np.dtype(np.int8))
170170
tm.assert_series_equal(ser, expected)

0 commit comments

Comments
 (0)