From 5d739c1473b58bfa34857dcc96773bf24ff54f26 Mon Sep 17 00:00:00 2001 From: jreback Date: Sun, 19 May 2013 21:12:16 -0400 Subject: [PATCH] TST: fix unicdoe errors test_strings PTF --- pandas/tests/test_strings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/tests/test_strings.py b/pandas/tests/test_strings.py index d49338af698d1..d057dc5304277 100644 --- a/pandas/tests/test_strings.py +++ b/pandas/tests/test_strings.py @@ -350,8 +350,8 @@ def test_replace(self): tm.assert_series_equal(result, exp) #flags + unicode - values = Series(["abcd,\xc3\xa0".decode("utf-8")]) - exp = Series(["abcd, \xc3\xa0".decode("utf-8")]) + values = Series([b"abcd,\xc3\xa0".decode("utf-8")]) + exp = Series([b"abcd, \xc3\xa0".decode("utf-8")]) result = values.str.replace("(?<=\w),(?=\w)", ", ", flags=re.UNICODE) tm.assert_series_equal(result, exp)