[Python-checkins] cpython (merge 3.2 -> default): Issue #11956: Always skip test_import.test_unwritable_directory when run as
charles-francois.natali
python-checkins at python.org
Tue Oct 4 20:40:51 CEST 2011
http://hg.python.org/cpython/rev/971093a75613
changeset: 72675:971093a75613
parent: 72673:981deff56707
parent: 72674:cbda512c6d7f
user: Charles-François Natali <neologix at free.fr>
date: Tue Oct 04 20:41:52 2011 +0200
summary:
Issue #11956: Always skip test_import.test_unwritable_directory when run as
root, since the semantics varies across Unix variants.
files:
Lib/test/test_import.py | 4 ++--
1 files changed, 2 insertions(+), 2 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
@@ -545,8 +545,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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list