From d6dd40dee839d9fcbe80ba6b44e49890cee5d71d Mon Sep 17 00:00:00 2001 From: y-p Date: Thu, 10 Jan 2013 15:56:01 +0200 Subject: [PATCH] TST: fix test to rely on display.encoding rather then utf8, GH2666 --- pandas/tests/test_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/tests/test_format.py b/pandas/tests/test_format.py index 4f77da10ac257..cb92f85cad0aa 100644 --- a/pandas/tests/test_format.py +++ b/pandas/tests/test_format.py @@ -137,7 +137,7 @@ def test_to_string_repr_unicode(self): line_len = len(rs[0]) for line in rs[1:]: try: - line = line.decode('utf-8') + line = line.decode(get_option("display.encoding")) except: pass self.assert_(len(line) == line_len)