Skip to content

Commit 15699fa

Browse files
committed
CLN: Final cleanups for 1.5.x compat
1 parent f468280 commit 15699fa

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

tests/test_io.py

+3-19
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
DataFrame,
2020
HDFStore,
2121
Series,
22+
errors,
2223
read_clipboard,
2324
read_csv,
2425
read_excel,
@@ -53,7 +54,6 @@
5354
)
5455

5556
from pandas.io.api import to_pickle
56-
from pandas.io.clipboard import PyperclipException
5757
from pandas.io.json._json import JsonReader
5858
from pandas.io.parsers import TextFileReader
5959
from 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-
208192
def test_read_stata_iterator():
209193
with ensure_clean() as path:
210194
str_path = str(path)
@@ -217,7 +201,7 @@ def test_read_stata_iterator():
217201
def 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():
227211
def 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

Comments
 (0)