Close #13401: Skip TestFileTypeW of test_argparse if the current user is root

Patch written by Arfrever Frehtes Taifersar Arahesis.
This commit is contained in:
Victor Stinner 2011-11-20 23:09:09 +01:00
parent 8d40f16a60
commit a04b39b261
1 changed files with 2 additions and 0 deletions

View File

@ -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"""