[Python-checkins] cpython (merge 3.2 -> default): (Merge 3.2) Close #13401: Skip TestFileTypeW of test_argparse if the current
victor.stinner
python-checkins at python.org
Sun Nov 20 23:09:40 CET 2011
http://hg.python.org/cpython/rev/50e788691eda
changeset: 73646:50e788691eda
parent: 73644:5b426bf9260c
parent: 73645:ba3da86d1c5d
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Sun Nov 20 23:10:12 2011 +0100
summary:
(Merge 3.2) Close #13401: Skip TestFileTypeW of test_argparse if the current user is root
Patch written by Arfrever Frehtes Taifersar Arahesis.
files:
Lib/test/test_argparse.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py
--- a/Lib/test/test_argparse.py
+++ b/Lib/test/test_argparse.py
@@ -1502,6 +1502,8 @@
return self.name == other.name
+ at unittest.skipIf(hasattr(os, 'geteuid') and os.geteuid() == 0,
+ "non-root user required")
class TestFileTypeW(TempDirMixin, ParserTestCase):
"""Test the FileType option/argument type for writing files"""
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list