diff --git a/pandas/tests/test_strings.py b/pandas/tests/test_strings.py index cf52e286a47a5..89ede96dce18e 100644 --- a/pandas/tests/test_strings.py +++ b/pandas/tests/test_strings.py @@ -2970,14 +2970,10 @@ def test_partition_sep_kwarg(self): # GH 22676; depr kwarg "pat" in favor of "sep" values = Series(["a_b_c", "c_d_e", np.nan, "f_g_h"]) - # str.partition - # using sep -> no warning expected = values.str.partition(sep="_") result = values.str.partition("_") tm.assert_frame_equal(result, expected) - # str.rpartition - # using sep -> no warning expected = values.str.rpartition(sep="_") result = values.str.rpartition("_") tm.assert_frame_equal(result, expected)