File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,16 @@ def test_round_trip_frame(self):
91
91
self .check_round_trip_frame (dt )
92
92
93
93
def test_read_clipboard_infer_excel (self ):
94
+ # gh-19010: avoid warnings
95
+ clip_kwargs = dict (engine = "python" )
94
96
95
97
text = dedent ("""
96
98
John James Charlie Mingus
97
99
1 2
98
100
4 Harry Carney
99
101
""" .strip ())
100
102
clipboard_set (text )
101
- df = pd .read_clipboard ()
103
+ df = pd .read_clipboard (** clip_kwargs )
102
104
103
105
# excel data is parsed correctly
104
106
assert df .iloc [1 ][1 ] == 'Harry Carney'
@@ -110,15 +112,15 @@ def test_read_clipboard_infer_excel(self):
110
112
3 4
111
113
""" .strip ())
112
114
clipboard_set (text )
113
- res = pd .read_clipboard ()
115
+ res = pd .read_clipboard (** clip_kwargs )
114
116
115
117
text = dedent ("""
116
118
a b
117
119
1 2
118
120
3 4
119
121
""" .strip ())
120
122
clipboard_set (text )
121
- exp = pd .read_clipboard ()
123
+ exp = pd .read_clipboard (** clip_kwargs )
122
124
123
125
tm .assert_frame_equal (res , exp )
124
126
You can’t perform that action at this time.
0 commit comments