Skip to content

Commit d6dd40d

Browse files
author
y-p
committed
TST: fix test to rely on display.encoding rather then utf8, GH2666
1 parent e1929f7 commit d6dd40d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/test_format.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def test_to_string_repr_unicode(self):
137137
line_len = len(rs[0])
138138
for line in rs[1:]:
139139
try:
140-
line = line.decode('utf-8')
140+
line = line.decode(get_option("display.encoding"))
141141
except:
142142
pass
143143
self.assert_(len(line) == line_len)

0 commit comments

Comments
 (0)