diff options
author | Mike Gilbert <floppym@gentoo.org> | 2020-04-03 10:37:56 -0400 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-07-04 10:51:45 +0200 |
commit | 9af5dbff696fb4863288d6f8c96d3e78350d1a7f (patch) | |
tree | 63156ea9311b3181ed4b54e940f3a6636e6e36f2 | |
parent | distutils: make -OO enable both opt-1 and opt-2 optimization (diff) | |
download | cpython-9af5dbff696fb4863288d6f8c96d3e78350d1a7f.tar.gz cpython-9af5dbff696fb4863288d6f8c96d3e78350d1a7f.tar.bz2 cpython-9af5dbff696fb4863288d6f8c96d3e78350d1a7f.zip |
test.support.unlink: ignore PermissionErrorgentoo-3.6.11
Resolves test errors when running in the Gentoo sandbox environment.
Bug: https://bugs.gentoo.org/679628
-rw-r--r-- | Lib/test/support/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 66c0fed8411..a964586f4ac 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -420,7 +420,7 @@ else: def unlink(filename): try: _unlink(filename) - except (FileNotFoundError, NotADirectoryError): + except (FileNotFoundError, NotADirectoryError, PermissionError): pass def rmdir(dirname): |