From a13b1faa788f95f063a2190eb63d81ee8565182d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Fran=C3=A7ois=20Natali?= Date: Tue, 4 Oct 2011 19:17:26 +0200 Subject: Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as root (directory permissions are ignored). --- Lib/test/test_import.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 98b7351..42ec084 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -4,6 +4,7 @@ from importlib.test.import_ import test_relative_imports 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 @@ class PycacheTests(unittest.TestCase): @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. -- cgit v0.12