8000 gh-51067: add `ZipFile.remove()` by danny0838 · Pull Request #103033 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-51067: add ZipFile.remove() #103033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Suppress duplicated name warning during generating test files
  • Loading branch information
danny0838 committed Jun 19, 2025
commit 7b7f54a1cfe8c89cd2c6452c113fb815334e51cc
5 changes: 4 additions & 1 deletion Lib/test/test_zipfile/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,10 @@ def test_duplicated_arcname(self):
for index in dups:
indexes = [index]
with self.subTest(dups=dups, remove=indexes):
self._test_removing_members(files, indexes)
import warnings
with warnings.catch_warnings():
warnings.simplefilter("ignore")
self._test_removing_members(files, indexes)

def test_non_physical(self):
"""Test underlying _remove_members() for non-physical removing."""
Expand Down
0