Skip to content

Commit edb8553

Browse files
Ajay SaxenaAjay Saxena
authored andcommitted
refactored the new unicode test to be in sync with the rest of the file
1 parent c83d000 commit edb8553

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

pandas/io/tests/test_clipboard.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def setUpClass(cls):
5252
# Test for non-ascii text: GH9263
5353
cls.data['nonascii'] = pd.DataFrame({'en': 'in English'.split(),
5454
'es': 'en español'.split()})
55+
56+
# unicode round trip test for GH 13747
57+
cls.data['utf8'] = pd.DataFrame({'a':['µasd','Ωœ∑´'], 'b':['øπ∆˚¬','œ∑´®']})
5558
cls.data_types = list(cls.data.keys())
5659

5760
@classmethod
@@ -114,11 +117,3 @@ def test_read_clipboard_infer_excel(self):
114117

115118
tm.assert_frame_equal(res, exp)
116119

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)