Skip to content

Commit c68fd54

Browse files
Backport PR #51918 on branch 2.0.x (Replace deprecated BadZipfile with BadZipFile) (#51927)
Backport PR #51918: Replace deprecated BadZipfile with BadZipFile Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 7276c75 commit c68fd54

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)