19
19
DataFrame ,
20
20
HDFStore ,
21
21
Series ,
22
+ errors ,
22
23
read_clipboard ,
23
24
read_csv ,
24
25
read_excel ,
53
54
)
54
55
55
56
from pandas .io .api import to_pickle
56
- from pandas .io .clipboard import PyperclipException
57
57
from pandas .io .json ._json import JsonReader
58
58
from pandas .io .parsers import TextFileReader
59
59
from pandas .io .pytables import (
@@ -189,22 +189,6 @@ def test_read_stata_df():
189
189
check (assert_type (read_stata (path ), pd .DataFrame ), pd .DataFrame )
190
190
191
191
192
- # Remove test when pandas 1.5.0 is released
193
- def test_read_stata_iterator_positional ():
194
- with ensure_clean () as path :
195
- str_path = str (path )
196
- DF .to_stata (str_path )
197
- check (
198
- assert_type (
199
- read_stata (
200
- str_path , False , False , None , False , False , None , False , 2 , True
201
- ),
202
- StataReader ,
203
- ),
204
- StataReader ,
205
- )
206
-
207
-
208
192
def test_read_stata_iterator ():
209
193
with ensure_clean () as path :
210
194
str_path = str (path )
@@ -217,7 +201,7 @@ def test_read_stata_iterator():
217
201
def test_clipboard ():
218
202
try :
219
203
DF .to_clipboard ()
220
- except PyperclipException :
204
+ except errors . PyperclipException :
221
205
pytest .skip ("clipboard not available for testing" )
222
206
check (assert_type (read_clipboard (), DataFrame ), DataFrame )
223
207
check (assert_type (read_clipboard (iterator = False ), DataFrame ), DataFrame )
@@ -227,7 +211,7 @@ def test_clipboard():
227
211
def test_clipboard_iterator ():
228
212
try :
229
213
DF .to_clipboard ()
230
- except PyperclipException :
214
+ except errors . PyperclipException :
231
215
pytest .skip ("clipboard not available for testing" )
232
216
check (assert_type (read_clipboard (iterator = True ), TextFileReader ), TextFileReader )
233
217
check (
0 commit comments