Skip to content

Commit

Permalink
TST: added a test related to pandas-dev#680
Browse files Browse the repository at this point in the history
  • Loading branch information
adamklein committed Jan 26, 2012
1 parent b848894 commit b91b645
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pandas/tests/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1866,6 +1866,18 @@ def test_to_string_with_formatters_unicode(self):
(' c/\xcf\x83\n0 1 \n1 2 \n2 3 ', cp437,
' c/?\n0 1 \n1 2 \n2 3 ' ))

def test_to_string_buffer_all_unicode(self):
buf = StringIO()

empty = DataFrame({u'c/\u03c3':Series()})
nonempty = DataFrame({u'c/\u03c3':Series([1,2,3])})

print >>buf, empty
print >>buf, nonempty

# this should work
''.join(buf.buflist)

def test_head_tail(self):
assert_frame_equal(self.frame.head(), self.frame[:5])
assert_frame_equal(self.frame.tail(), self.frame[-5:])
Expand Down

0 comments on commit b91b645

Please sign in to comment.