Skip to content

Commit de1253f

Browse files
fix pytest error
1 parent 0acd7be commit de1253f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/tests/test_strings.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3445,9 +3445,8 @@ def test_replace_without_specifying_regex_parameter(self):
34453445
values = Series(['a.c'])
34463446
# GH: 24804
34473447
# test future deprecation warning
3448-
msg = "'.' is interpreted as a literal"
3449-
with pytest.warns(FutureWarning, match=msg):
3448+
with tm.assert_produces_warning(FutureWarning,
3449+
check_stacklevel=False):
34503450
result = values.str.replace('.', 'b')
34513451
expected = Series(['abc'])
34523452
tm.assert_series_equal(result, expected)
3453-

0 commit comments

Comments
 (0)