[Python-checkins] cpython (2.7): Close #13401: Skip TestFileTypeW of test_argparse if the current user is root
victor.stinner
python-checkins at python.org
Sun Nov 20 23:09:41 CET 2011
http://hg.python.org/cpython/rev/6e1e1118adca
changeset: 73647:6e1e1118adca
branch: 2.7
parent: 73628:49677cc6d83a
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Sun Nov 20 23:09:09 2011 +0100
summary:
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
@@ -1509,6 +1509,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