[Python-checkins] cpython (3.2): Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as
charles-francois.natali
python-checkins at python.org
Tue Oct 4 19:17:50 CEST 2011
http://hg.python.org/cpython/rev/7697223df6df
changeset: 72670:7697223df6df
branch: 3.2
parent: 72658:2484b2b8876e
user: Charles-François Natali <neologix at free.fr>
date: Tue Oct 04 19:17:26 2011 +0200
summary:
Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as
root (directory permissions are ignored).
files:
Lib/test/test_import.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -4,6 +4,7 @@
from importlib.test.import_ import util as importlib_util
import marshal
import os
+import platform
import py_compile
import random
import stat
@@ -546,6 +547,8 @@
@unittest.skipUnless(os.name == 'posix',
"test meaningful only on posix systems")
+ @unittest.skipIf(platform.system() == 'FreeBSD' and os.geteuid() == 0,
+ "due to non-standard filesystem permission semantics (issue #11956)")
def test_unwritable_directory(self):
# When the umask causes the new __pycache__ directory to be
# unwritable, the import still succeeds but no .pyc file is written.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list