Skip to content

Commit 49da3ce

Browse files
committed
Check for now warning
1 parent c4b0780 commit 49da3ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/frame/methods/test_diff.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def test_diff_datetime_with_nat_zero_periods(self, tz):
9696
with tm.assert_produces_warning(FutureWarning, match=msg):
9797
df.iloc[:, 0] = pd.NaT
9898
else:
99-
df.iloc[:, 0] = pd.NaT
99+
with tm.assert_produces_warning(None):
100+
df.iloc[:, 0] = pd.NaT
100101

101102
expected = df - df
102103
assert expected[0].isna().all()

0 commit comments

Comments
 (0)