Skip to content

Commit b7a6133

Browse files
authored
Replace deprecated BadZipfile with BadZipFile (#51918)
1 parent 6169cba commit b7a6133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/io/parser/test_compression.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def test_zip_error_invalid_zip(parser_and_data):
8585

8686
with tm.ensure_clean() as path:
8787
with open(path, "rb") as f:
88-
with pytest.raises(zipfile.BadZipfile, match="File is not a zip file"):
88+
with pytest.raises(zipfile.BadZipFile, match="File is not a zip file"):
8989
parser.read_csv(f, compression="zip")
9090

9191

0 commit comments

Comments
 (0)