mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
This commit is contained in:
commit
5b89840d9c
42 changed files with 64 additions and 64 deletions
|
@ -1024,7 +1024,7 @@ class OtherTests(unittest.TestCase):
|
|||
with zipfile.ZipFile(data, mode="w") as zipf:
|
||||
zipf.writestr("foo.txt", "O, for a Muse of Fire!")
|
||||
|
||||
# This is correct; calling .read on a closed ZipFile should throw
|
||||
# This is correct; calling .read on a closed ZipFile should raise
|
||||
# a RuntimeError, and so should calling .testzip. An earlier
|
||||
# version of .testzip would swallow this exception (and any other)
|
||||
# and report that the first file in the archive was corrupt.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue