Skip to content

Commit d92103d

Browse files
authored
WARN: Avoid FutureWarnings in tests (#48398)
Avoid FutureWarnings in tests
1 parent 8cb7cfe commit d92103d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/frame/methods/test_update.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ def test_update_from_non_df(self):
136136
def test_update_datetime_tz(self):
137137
# GH 25807
138138
result = DataFrame([pd.Timestamp("2019", tz="UTC")])
139-
result.update(result)
139+
with tm.assert_produces_warning(FutureWarning):
140+
result.update(result)
140141
expected = DataFrame([pd.Timestamp("2019", tz="UTC")])
141142
tm.assert_frame_equal(result, expected)
142143

0 commit comments

Comments
 (0)