Skip to content

gh-157893: Make closed ZipFile operations raise ValueError consistently - #157894

Open
lpyu001 wants to merge 2 commits into
python:mainfrom
lpyu001:zip-issue-157893
Open

lpyu001 wants to merge 2 commits into
python:mainfrom
lpyu001:zip-issue-157893

Conversation

@lpyu001

@lpyu001 lpyu001 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Comment thread Lib/test/test_zipfile/test_core.py Outdated
self.assertRaises(ValueError, zipf.write, TESTFN)

def test_closed_zip_extract_raises_ValueError(self):
# gh-NNNNNN: testzip(), extract() and extractall() must reject a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"gh-NNNNNN" looks like a placeholder. Could you check this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants