Issue #11956: Always skip test_import.test_unwritable_directory when run as
root, since the semantics varies across Unix variants.
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index 42ec084..f74556f 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -547,8 +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)")
+ @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.