Skip to content

Commit c83d000

Browse files
Ajay SaxenaAjay Saxena
Ajay Saxena
authored and
Ajay Saxena
committed
added test case for unicode round trip
1 parent fb922d6 commit c83d000

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/io/tests/test_clipboard.py

+9
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,12 @@ def test_read_clipboard_infer_excel(self):
113113
exp = pd.read_clipboard()
114114

115115
tm.assert_frame_equal(res, exp)
116+
117+
# unicode round trip test for GH 13747
118+
def test_round_trip_frame_unicode(self):
119+
sep = ','
120+
df = pd.DataFrame({'a':['µasd','Ωœ∑´'], 'b':['øπ∆˚¬','œ∑´®']})
121+
df.to_clipboard(excel=None, sep =sep)
122+
result = read_clipboard(sep = sep, index_col = 0)
123+
tm.assert_frame_equal(df, result, check_dtype=False)
124+

0 commit comments

Comments
 (0)