aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-04-04 14:11:25 -0400
committerMichał Górny <mgorny@gentoo.org>2020-12-14 13:08:18 +0100
commit39cca39666354b8489f3b1a23aa0115a62f3f35e (patch)
tree9fc47f5d215193d0dafc32ceffae057df445b04a
parentForce using system libffi (diff)
downloadcpython-39cca39666354b8489f3b1a23aa0115a62f3f35e.tar.gz
cpython-39cca39666354b8489f3b1a23aa0115a62f3f35e.tar.bz2
cpython-39cca39666354b8489f3b1a23aa0115a62f3f35e.zip
test.support.unlink: ignore EACCESgentoo-2.7.18-r4
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 ccc11c1b4b0..d47bdebda5c 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -291,7 +291,7 @@ def unlink(filename):
try:
_unlink(filename)
except OSError as exc:
- if exc.errno not in (errno.ENOENT, errno.ENOTDIR):
+ if exc.errno not in (errno.ENOENT, errno.ENOTDIR, errno.EACCES):
raise
def rmdir(dirname):