Skip to content

Commit b91b645

Browse files
committed
TST: added a test related to #680
1 parent b848894 commit b91b645

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pandas/tests/test_frame.py

+12
Original file line numberDiff line numberDiff line change
@@ -1866,6 +1866,18 @@ def test_to_string_with_formatters_unicode(self):
18661866
(' c/\xcf\x83\n0 1 \n1 2 \n2 3 ', cp437,
18671867
' c/?\n0 1 \n1 2 \n2 3 ' ))
18681868

1869+
def test_to_string_buffer_all_unicode(self):
1870+
buf = StringIO()
1871+
1872+
empty = DataFrame({u'c/\u03c3':Series()})
1873+
nonempty = DataFrame({u'c/\u03c3':Series([1,2,3])})
1874+
1875+
print >>buf, empty
1876+
print >>buf, nonempty
1877+
1878+
# this should work
1879+
''.join(buf.buflist)
1880+
18691881
def test_head_tail(self):
18701882
assert_frame_equal(self.frame.head(), self.frame[:5])
18711883
assert_frame_equal(self.frame.tail(), self.frame[-5:])

0 commit comments

Comments
 (0)