Skip to content

Commit

Permalink
added test case for unicode round trip
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay Saxena authored and Ajay Saxena committed Nov 8, 2016
1 parent fb922d6 commit c83d000
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pandas/io/tests/test_clipboard.py
Expand Up @@ -113,3 +113,12 @@ def test_read_clipboard_infer_excel(self):
exp = pd.read_clipboard()

tm.assert_frame_equal(res, exp)

# unicode round trip test for GH 13747
def test_round_trip_frame_unicode(self):
sep = ','
df = pd.DataFrame({'a':['µasd','Ωœ∑´'], 'b':['øπ∆˚¬','œ∑´®']})
df.to_clipboard(excel=None, sep =sep)
result = read_clipboard(sep = sep, index_col = 0)
tm.assert_frame_equal(df, result, check_dtype=False)

0 comments on commit c83d000

Please sign in to comment.