diff options
author | Mike Gilbert <floppym@gentoo.org> | 2020-04-04 14:11:25 -0400 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-12-14 13:08:18 +0100 |
commit | 39cca39666354b8489f3b1a23aa0115a62f3f35e (patch) | |
tree | 9fc47f5d215193d0dafc32ceffae057df445b04a | |
parent | Force using system libffi (diff) | |
download | cpython-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__.py | 2 |
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): |