Skip to content

Commit f563fd0

Browse files
fix np2 check
1 parent 2183e20 commit f563fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/copy_view/test_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_dataframe_multiple_numpy_dtypes():
140140
assert not np.shares_memory(arr, get_array(df, "a"))
141141
assert arr.flags.writeable is True
142142

143-
if not np_version_gt2:
143+
if np_version_gt2:
144144
# copy=False semantics are only supported in NumPy>=2.
145145

146146
with pytest.raises(ValueError, match="Unable to avoid copy while creating"):

0 commit comments

Comments
 (0)