Skip to content

Commit cdc6817

Browse files
fix pytest
1 parent f853a4c commit cdc6817

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: pandas/tests/test_strings.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from numpy.random import randint
77
import pytest
88

9-
import pandas.compat as compat
109

1110
from pandas import DataFrame, Index, MultiIndex, Series, concat, isna, notna
1211
import pandas.core.strings as strings
@@ -3215,14 +3214,13 @@ def test_replace_warning_single_character(self, input_array,
32153214
if warn:
32163215
with tm.assert_produces_warning(FutureWarning,
32173216
check_stacklevel=False):
3218-
result = values.str.replace(single_char, replace_char)
3217+
result = values.str.replace(single_char, replace_char, regex=None)
32193218
else:
32203219
result = values.str.replace(single_char, replace_char)
32213220

32223221
expected = Series([expect_array])
32233222
tm.assert_series_equal(result, expected)
32243223

3225-
@pytest.mark.skipif(compat.PY2, reason='not in python2')
32263224
def test_casefold(self):
32273225
# GH25405
32283226
expected = Series(['ss', NA, 'case', 'ssd'])

0 commit comments

Comments
 (0)