We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1820f78 commit d466e24Copy full SHA for d466e24
pandas/tests/copy_view/test_array.py
@@ -187,7 +187,8 @@ def test_dataframe_multiple_numpy_dtypes():
187
if np_version_gt2:
188
# copy=False semantics are only supported in NumPy>=2.
189
190
- with pytest.raises(ValueError, match="Unable to avoid copy while creating"):
+ msg = "Starting with NumPy 2.0, the behavior of the 'copy' keyword has changed"
191
+ with pytest.raises(FutureWarning, match=msg):
192
arr = np.array(df, copy=False)
193
194
arr = np.array(df, copy=True)
0 commit comments