Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: add extra test case for np.array(obj, copy=False) read-only behaviour #60191

Prev Previous commit
fix np2 check
  • Loading branch information
jorisvandenbossche committed Nov 7, 2024
commit f563fd0ab6c5d050f6c53f3c551bfe19c98a9a48
2 changes: 1 addition & 1 deletion pandas/tests/copy_view/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def test_dataframe_multiple_numpy_dtypes():
assert not np.shares_memory(arr, get_array(df, "a"))
assert arr.flags.writeable is True

if not np_version_gt2:
if np_version_gt2:
# copy=False semantics are only supported in NumPy>=2.

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