Skip to content

Commit b69e4ac

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/io/test_common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ 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, 'feather'),
116+
(pd.read_hdf, 'tables', pd.compat.FileNotFoundError, 'h5'),
117117
(pd.read_stata, 'os', pd.compat.FileNotFoundError, 'dta'),
118118
(pd.read_sas, 'os', pd.compat.FileNotFoundError, 'sas7bdat'),
119119
(pd.read_json, 'os', ValueError, 'json'),

0 commit comments

Comments
 (0)