@@ -88,8 +88,6 @@ def check_round_trip_frame(self, data, excel=None, sep=None,
88
88
tm .assert_frame_equal (data , result , check_dtype = False )
89
89
90
90
# Test that default arguments copy as tab delimited
91
- @pytest .mark .xfail (reason = 'to_clipboard defaults to space delim. '
92
- 'Issue in #21104, Fixed in #21111' )
93
91
def test_round_trip_frame (self , df ):
94
92
self .check_round_trip_frame (df )
95
93
@@ -99,10 +97,6 @@ def test_round_trip_frame_sep(self, df, sep):
99
97
self .check_round_trip_frame (df , sep = sep )
100
98
101
99
# Test white space separator
102
- @pytest .mark .xfail (reason = "Fails on 'delims' df because quote escapes "
103
- "aren't handled correctly in default c engine. Fixed "
104
- "in #21111 by defaulting to python engine for "
105
- "whitespace separator" )
106
100
def test_round_trip_frame_string (self , df ):
107
101
df .to_clipboard (excel = False , sep = None )
108
102
result = read_clipboard ()
@@ -111,21 +105,17 @@ def test_round_trip_frame_string(self, df):
111
105
112
106
# Two character separator is not supported in to_clipboard
113
107
# Test that multi-character separators are not silently passed
114
- @pytest .mark .xfail (reason = "Not yet implemented. Fixed in #21111" )
115
108
def test_excel_sep_warning (self , df ):
116
109
with tm .assert_produces_warning ():
117
110
df .to_clipboard (excel = True , sep = r'\t' )
118
111
119
112
# Separator is ignored when excel=False and should produce a warning
120
- @pytest .mark .xfail (reason = "Not yet implemented. Fixed in #21111" )
121
113
def test_copy_delim_warning (self , df ):
122
114
with tm .assert_produces_warning ():
123
115
df .to_clipboard (excel = False , sep = '\t ' )
124
116
125
117
# Tests that the default behavior of to_clipboard is tab
126
118
# delimited and excel="True"
127
- @pytest .mark .xfail (reason = "to_clipboard defaults to space delim. Issue in "
128
- "#21104, Fixed in #21111" )
129
119
@pytest .mark .parametrize ('sep' , ['\t ' , None , 'default' ])
130
120
@pytest .mark .parametrize ('excel' , [True , None , 'default' ])
131
121
def test_clipboard_copy_tabs_default (self , sep , excel , df ):
@@ -139,10 +129,6 @@ def test_clipboard_copy_tabs_default(self, sep, excel, df):
139
129
assert clipboard_get () == df .to_csv (sep = '\t ' )
140
130
141
131
# Tests reading of white space separated tables
142
- @pytest .mark .xfail (reason = "Fails on 'delims' df because quote escapes "
143
- "aren't handled correctly. in default c engine. Fixed "
144
- "in #21111 by defaulting to python engine for "
145
- "whitespace separator" )
146
132
@pytest .mark .parametrize ('sep' , [None , 'default' ])
147
133
@pytest .mark .parametrize ('excel' , [False ])
148
134
def test_clipboard_copy_strings (self , sep , excel , df ):
@@ -193,8 +179,6 @@ def test_invalid_encoding(self, df):
193
179
with pytest .raises (NotImplementedError ):
194
180
pd .read_clipboard (encoding = 'ascii' )
195
181
196
- @pytest .mark .xfail (reason = 'to_clipboard defaults to space delim. '
197
- 'Issue in #21104, Fixed in #21111' )
198
182
@pytest .mark .parametrize ('enc' , ['UTF-8' , 'utf-8' , 'utf8' ])
199
183
def test_round_trip_valid_encodings (self , enc , df ):
200
184
self .check_round_trip_frame (df , encoding = enc )
0 commit comments