Skip to content

Commit dcdf036

Browse files
hugovkmeeseeksmachine
authored andcommitted
Backport PR pandas-dev#51918: Replace deprecated BadZipfile with BadZipFile
1 parent 7276c75 commit dcdf036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/io/parser/test_compression.py

Lines changed: 1 addition & 1 deletion
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)