diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-20 22:09:09 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-20 22:09:09 (GMT) |
commit | a04b39b261ff8cba6c71bada5c884d39a88b4c82 (patch) | |
tree | 41677a5fd1142c3a94cea5311113a447b2616dcd /Lib/test | |
parent | 8d40f16a6021dc7fbba1bdc1bbda27ea1e955777 (diff) | |
download | cpython-a04b39b261ff8cba6c71bada5c884d39a88b4c82.zip cpython-a04b39b261ff8cba6c71bada5c884d39a88b4c82.tar.gz cpython-a04b39b261ff8cba6c71bada5c884d39a88b4c82.tar.bz2 |
Close #13401: Skip TestFileTypeW of test_argparse if the current user is root
Patch written by Arfrever Frehtes Taifersar Arahesis.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_argparse.py | 2 |
1 files changed, 2 insertions, 0 deletions
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""" |