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: v3.2.3rc1~376 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a04b39b261ff8cba6c71bada5c884d39a88b4c82;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 5ecfdc72ea83..5d213c42f417 100644 --- a/Lib/test/test_argparse.py +++ b/Lib/test/test_argparse.py @@ -1502,6 +1502,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"""