From 9d38b0dcb2a0ca6fcaaff96642e98448f55633a3 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 20 Nov 2011 23:09:09 +0100 Subject: [PATCH] Close #13401: Skip TestFileTypeW of test_argparse if the current user is root Patch written by Arfrever Frehtes Taifersar Arahesis. --- Lib/test/test_argparse.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py index 5785eec57fb..28d1ef39d46 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"""