aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_importlib/update-zips.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-04-17 11:10:36 -0400
committerGitHub <noreply@github.com>2022-04-17 11:10:36 -0400
commit7659681556977fe3a19d9f4c5dd93362b9eae25c (patch)
tree863d22344a00d1bd1ceb5e34a020680f54812385 /Lib/test/test_importlib/update-zips.py
parent67712e71b3f20541326d57a475f4bd369a98d918 (diff)
downloadcpython-7659681556977fe3a19d9f4c5dd93362b9eae25c.tar.gz
cpython-7659681556977fe3a19d9f4c5dd93362b9eae25c.zip
gh-91298: Refine traversable (apply changes from importlib_resources 5.7.1) (#91623)
* bpo-47142: Refine traversable (apply changes from importlib_resources 5.7.1) * Replace changelog referencing github issue.
Diffstat (limited to 'Lib/test/test_importlib/update-zips.py')
-rwxr-xr-xLib/test/test_importlib/update-zips.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_importlib/update-zips.py b/Lib/test/test_importlib/update-zips.py
index 9ef0224ca65..231334aa7e3 100755
--- a/Lib/test/test_importlib/update-zips.py
+++ b/Lib/test/test_importlib/update-zips.py
@@ -42,7 +42,7 @@ def generate(suffix):
def walk(datapath):
for dirpath, dirnames, filenames in os.walk(datapath):
- with contextlib.suppress(KeyError):
+ with contextlib.suppress(ValueError):
dirnames.remove('__pycache__')
for filename in filenames:
res = pathlib.Path(dirpath) / filename