aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-04-03 10:37:56 -0400
committerMichał Górny <mgorny@gentoo.org>2020-07-04 10:51:45 +0200
commit9af5dbff696fb4863288d6f8c96d3e78350d1a7f (patch)
tree63156ea9311b3181ed4b54e940f3a6636e6e36f2
parentdistutils: make -OO enable both opt-1 and opt-2 optimization (diff)
downloadcpython-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__.py2
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):