1919 DataFrame ,
2020 HDFStore ,
2121 Series ,
22+ errors ,
2223 read_clipboard ,
2324 read_csv ,
2425 read_excel ,
5354)
5455
5556from pandas .io .api import to_pickle
56- from pandas .io .clipboard import PyperclipException
5757from pandas .io .json ._json import JsonReader
5858from pandas .io .parsers import TextFileReader
5959from pandas .io .pytables import (
@@ -189,22 +189,6 @@ def test_read_stata_df():
189189 check (assert_type (read_stata (path ), pd .DataFrame ), pd .DataFrame )
190190
191191
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-
208192def test_read_stata_iterator ():
209193 with ensure_clean () as path :
210194 str_path = str (path )
@@ -217,7 +201,7 @@ def test_read_stata_iterator():
217201def test_clipboard ():
218202 try :
219203 DF .to_clipboard ()
220- except PyperclipException :
204+ except errors . PyperclipException :
221205 pytest .skip ("clipboard not available for testing" )
222206 check (assert_type (read_clipboard (), DataFrame ), DataFrame )
223207 check (assert_type (read_clipboard (iterator = False ), DataFrame ), DataFrame )
@@ -227,7 +211,7 @@ def test_clipboard():
227211def test_clipboard_iterator ():
228212 try :
229213 DF .to_clipboard ()
230- except PyperclipException :
214+ except errors . PyperclipException :
231215 pytest .skip ("clipboard not available for testing" )
232216 check (assert_type (read_clipboard (iterator = True ), TextFileReader ), TextFileReader )
233217 check (
0 commit comments