Skip to content

Commit 6ea733c

Browse files
committed
TST: Fix io.test_common.test_read_non_existant for external modules
1 parent 02b041c commit 6ea733c

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
@@ -129,9 +129,9 @@ def test_iterator(self):
129129
(pd.read_csv, 'os', pd.compat.FileNotFoundError, 'csv'),
130130
(pd.read_table, 'os', pd.compat.FileNotFoundError, 'csv'),
131131
(pd.read_fwf, 'os', pd.compat.FileNotFoundError, 'txt'),
132-
(pd.read_excel, 'xlrd', ValueError, 'xlsx'),
133-
(pd.read_feather, 'feather', ValueError, 'feather'),
134-
(pd.read_hdf, 'tables', ValueError, 'h5'),
132+
(pd.read_excel, 'xlrd', pd.compat.FileNotFoundError, 'xlsx'),
133+
(pd.read_feather, 'feather', Exception, 'feather'),
134+
(pd.read_hdf, 'tables', pd.compat.FileNotFoundError, 'h5'),
135135
(pd.read_stata, 'os', pd.compat.FileNotFoundError, 'dta'),
136136
(pd.read_sas, 'os', pd.compat.FileNotFoundError, 'sas7bdat'),
137137
(pd.read_json, 'os', ValueError, 'json'),

0 commit comments

Comments
 (0)