summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import.py
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-10-04 18:41:52 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-10-04 18:41:52 (GMT)
commit5f99c912c8721d1b8da54d371ff826c46262e944 (patch)
tree1601b87f3252debe0d96d330a91c5f1d0b5692cf /Lib/test/test_import.py
parent875f29bb95ffa76b6dbbf87cacfe525f9bc5031d (diff)
parent79164c8c713caa1d99c21cacabc606f4584af688 (diff)
downloadcpython-5f99c912c8721d1b8da54d371ff826c46262e944.zip
cpython-5f99c912c8721d1b8da54d371ff826c46262e944.tar.gz
cpython-5f99c912c8721d1b8da54d371ff826c46262e944.tar.bz2
Issue #11956: Always skip test_import.test_unwritable_directory when run as
root, since the semantics varies across Unix variants.
Diffstat (limited to 'Lib/test/test_import.py')
-rw-r--r--Lib/test/test_import.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index d852c0b..9d3db29 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -545,8 +545,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.