File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,17 @@ def test_invalid_encoding(self):
123
123
with tm .assertRaises (ValueError ):
124
124
data .to_clipboard (encoding = 'ascii' )
125
125
with tm .assertRaises (NotImplementedError ):
126
- pd .read_clipboard (encoding = 'ascii' )
126
+ pd .read_clipboard (encoding = 'ascii' )
127
+
128
+ def test_round_trip_valid_encodings (self ):
129
+ for enc in ['UTF-8' ,'utf-8' ,'utf8' ]:
130
+ for dt in self .data_types :
131
+ data = self .data [dt ]
132
+ data .to_clipboard (encoding = enc )
133
+ result = read_clipboard ()
134
+ tm .assert_frame_equal (data , result , check_dtype = False )
135
+
136
+
127
137
128
138
129
139
Original file line number Diff line number Diff line change @@ -642,7 +642,8 @@ def pxd(name):
642
642
'pandas.io.tests.parser' ,
643
643
'pandas.io.tests.sas' ,
644
644
'pandas.stats.tests' ,
645
- 'pandas.msgpack'
645
+ 'pandas.msgpack' ,
646
+ 'pandas.util.clipboard'
646
647
],
647
648
package_data = {'pandas.io' : ['tests/data/legacy_hdf/*.h5' ,
648
649
'tests/data/legacy_pickle/*/*.pickle' ,
You can’t perform that action at this time.
0 commit comments