]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #11956: Always skip test_import.test_unwritable_directory when run as
authorCharles-François Natali <neologix@free.fr>
Tue, 4 Oct 2011 18:40:58 +0000 (20:40 +0200)
committerCharles-François Natali <neologix@free.fr>
Tue, 4 Oct 2011 18:40:58 +0000 (20:40 +0200)
root, since the semantics varies across Unix variants.

Lib/test/test_import.py

index 42ec0849d99a11b0aeba537e800dcca99ae8a2cb..f74556f9806240af667be7bbdba1c8380107acf8 100644 (file)
@@ -547,8 +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)")
+    @unittest.skipIf(os.geteuid() == 0,
+            "due to varying 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.