From a04b39b261ff8cba6c71bada5c884d39a88b4c82 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 20 Nov 2011 23:09:09 +0100 Subject: 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 5ecfdc7..5d213c4 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""" -- cgit v0.12