From: Victor Stinner Date: Sun, 20 Nov 2011 22:09:09 +0000 (+0100) Subject: Close #13401: Skip TestFileTypeW of test_argparse if the current user is root X-Git-Tag: v2.7.3rc1~288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d38b0dcb2a0ca6fcaaff96642e98448f55633a3;p=thirdparty%2FPython%2Fcpython.git Close #13401: Skip TestFileTypeW of test_argparse if the current user is root Patch written by Arfrever Frehtes Taifersar Arahesis. --- diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py index 5785eec57fb1..28d1ef39d46e 100644 --- a/Lib/test/test_argparse.py +++ b/Lib/test/test_argparse.py @@ -1509,6 +1509,8 @@ class WFile(object): return self.name == other.name +@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"""