Skip to content

Commit 0bd57d0

Browse files
GH1089 PR Feedback
1 parent e0b4e4c commit 0bd57d0

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

tests/test_frame.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4011,12 +4011,7 @@ def test_transpose() -> None:
40114011
check(assert_type(df.transpose(), pd.DataFrame), pd.DataFrame)
40124012
check(assert_type(df.transpose(None), pd.DataFrame), pd.DataFrame)
40134013

4014-
msg = (
4015-
r"The copy keyword is deprecated and will be removed in a future version\. Copy"
4016-
r"-on-Write is active in pandas since 3\.0 which utilizes a lazy copy mechanism"
4017-
r" that defers copies until necessary\. Use \.copy\(\) to make an eager copy if"
4018-
" necessary.*"
4019-
)
4014+
msg = "The copy keyword is deprecated and will be removed in a future"
40204015
with pytest_warns_bounded(
40214016
DeprecationWarning,
40224017
msg,

tests/test_series.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3715,12 +3715,7 @@ def test_align() -> None:
37153715
check(assert_type(aligned_s0, pd.Series), pd.Series)
37163716
check(assert_type(aligned_s1, pd.Series), pd.Series)
37173717

3718-
msg = (
3719-
r"The copy keyword is deprecated and will be removed in a future version\. Copy"
3720-
r"-on-Write is active in pandas since 3\.0 which utilizes a lazy copy mechanism"
3721-
r" that defers copies until necessary\. Use \.copy\(\) to make an eager copy if"
3722-
" necessary.*"
3723-
)
3718+
msg = "The copy keyword is deprecated and will be removed in a future version.*"
37243719
with pytest_warns_bounded(
37253720
DeprecationWarning,
37263721
msg,

0 commit comments

Comments
 (0)