diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-20 22:10:12 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-20 22:10:12 (GMT) |
commit | 242b6ea97523bee6b9e038bb71906b58665c510f (patch) | |
tree | 0065ceaae22dc57b1583458ca0ff6cc758aaf164 /Lib/test/test_argparse.py | |
parent | da1ddf37c68f76041ca8ebb75e0016e96cc3f67b (diff) | |
parent | a04b39b261ff8cba6c71bada5c884d39a88b4c82 (diff) | |
download | cpython-242b6ea97523bee6b9e038bb71906b58665c510f.zip cpython-242b6ea97523bee6b9e038bb71906b58665c510f.tar.gz cpython-242b6ea97523bee6b9e038bb71906b58665c510f.tar.bz2 |
(Merge 3.2) 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/test_argparse.py')
-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 b0e9a03..5a40919 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""" |