summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-04-17 15:10:36 (GMT)
committerGitHub <noreply@github.com>2022-04-17 15:10:36 (GMT)
commit7659681556977fe3a19d9f4c5dd93362b9eae25c (patch)
tree863d22344a00d1bd1ceb5e34a020680f54812385 /Lib/test/test_importlib
parent67712e71b3f20541326d57a475f4bd369a98d918 (diff)
downloadcpython-7659681556977fe3a19d9f4c5dd93362b9eae25c.zip
cpython-7659681556977fe3a19d9f4c5dd93362b9eae25c.tar.gz
cpython-7659681556977fe3a19d9f4c5dd93362b9eae25c.tar.bz2
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')
-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 9ef0224..231334a 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