Skip to content

Commit ac0898f

Browse files
author
y-p
committed
TST: series tidy_repr with unicode data values
1 parent 61766ec commit ac0898f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/test_series.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,11 @@ def test_repr(self):
10431043
rep_str = repr(ser)
10441044
self.assert_("Name: 0" in rep_str)
10451045

1046+
def test_tidy_repr(self):
1047+
a=Series([u"\u05d0"]*1000)
1048+
a.name= 'title1'
1049+
repr(a) # should not raise exception
1050+
10461051
def test_repr_bool_fails(self):
10471052
s = Series([DataFrame(np.random.randn(2,2)) for i in range(5)])
10481053

0 commit comments

Comments
 (0)