diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index e5872f31b6d..8d8612afa39 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -372,7 +372,7 @@ ZipFile Objects Return the name of the first bad file, or else return ``None``. .. versionchanged:: 3.6 - Calling :meth:`testfile` on a closed ZipFile will raise a + Calling :meth:`testzip` on a closed ZipFile will raise a :exc:`ValueError`. Previously, a :exc:`RuntimeError` was raised.