Skip to content

Commit f4b6892

Browse files
committed
TST: Fix io.test_common.test_read_non_existant for external modules
1 parent 76659e5 commit f4b6892

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/tests/io/test_common.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ def test_iterator(self):
111111
(pd.read_csv, 'os', pd.compat.FileNotFoundError, 'csv'),
112112
(pd.read_table, 'os', pd.compat.FileNotFoundError, 'csv'),
113113
(pd.read_fwf, 'os', pd.compat.FileNotFoundError, 'txt'),
114-
(pd.read_excel, 'xlrd', ValueError, 'xlsx'),
115-
(pd.read_feather, 'feather', ValueError, 'feather'),
116-
(pd.read_hdf, 'tables', ValueError, 'h5'),
114+
(pd.read_excel, 'xlrd', pd.compat.FileNotFoundError, 'xlsx'),
115+
(pd.read_feather, 'feather', OSError if pd.compat.PY3 else IOError,
116+
'feather'),
117+
(pd.read_hdf, 'tables', pd.compat.FileNotFoundError, 'h5'),
117118
(pd.read_stata, 'os', pd.compat.FileNotFoundError, 'dta'),
118119
(pd.read_sas, 'os', pd.compat.FileNotFoundError, 'sas7bdat'),
119120
(pd.read_json, 'os', ValueError, 'json'),

0 commit comments

Comments
 (0)