Skip to content

Commit 09097c8

Browse files
committed
MAINT: Patch lint error with pytest.warns
The lint correctly fails on this line.
1 parent a5c0940 commit 09097c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/series/test_timeseries.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ def test_from_M8_structured(self):
937937
assert isinstance(s[0], Timestamp)
938938
assert s[0] == dates[0][0]
939939

940-
with pytest.warns(FutureWarning):
940+
with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
941941
s = Series.from_array(arr['Date'], Index([0]))
942942
assert s[0] == dates[0][0]
943943

0 commit comments

Comments
 (0)