File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments