Skip to content

Commit 7a96a11

Browse files
committed
Adress review
1 parent 41108bd commit 7a96a11

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/tests/io/excel/test_readers.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,6 @@ def test_reader_special_dtypes(self, request, read_ext):
424424
# if not coercing number, then int comes in as float
425425
float_expected = expected.copy()
426426
float_expected.loc[float_expected.index[1], "Str2Col"] = 3.0
427-
# raise_on_extra_warnings because xlrd raises a PendingDeprecationWarning
428-
# on database job Linux_py37_IO (ci/deps/actions-37-db.yaml)
429-
# See GH#41176
430427
actual = pd.read_excel(basename + read_ext, sheet_name="Sheet1")
431428
tm.assert_frame_equal(actual, float_expected)
432429

@@ -1247,6 +1244,10 @@ def test_read_excel_squeeze(self, read_ext):
12471244
expected = Series([1, 2, 3], name="a")
12481245
tm.assert_series_equal(actual, expected)
12491246

1247+
def test_deprecated_kwargs(self, read_ext):
1248+
with pytest.raises(TypeError, match="but 3 positional arguments"):
1249+
pd.read_excel("test1" + read_ext, "Sheet1", 0)
1250+
12501251
def test_no_header_with_list_index_col(self, read_ext):
12511252
# GH 31783
12521253
file_name = "testmultiindex" + read_ext

0 commit comments

Comments
 (0)