Skip to content

Commit b72c5a7

Browse files
phoflnoatamir
authored andcommitted
WARN: Avoid FutureWarnings in tests (pandas-dev#48398)
Avoid FutureWarnings in tests
1 parent 5afc90e commit b72c5a7

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)