Fix typo in zipfile documentation. (GH-10151) (GH-10153)
(cherry picked from commit 40bf6cff22185b8ebaab14789e81cff22fbf2275)
Co-authored-by: nsrip <nick.ripley@me.com>
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index c0f2a89..7804e92 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -363,7 +363,7 @@
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.