mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Suppress duplicated name warning during generating test files
This commit is contained in:
parent
8b4f709555
commit
7b7f54a1cf
1 changed files with 4 additions and 1 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue