diff options
Diffstat (limited to 'Lib/test/test_importlib/update-zips.py')
-rwxr-xr-x | Lib/test/test_importlib/update-zips.py | 2 |
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 |