diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-20 23:09:09 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-20 23:09:09 +0100 |
commit | 9d38b0dcb2a0ca6fcaaff96642e98448f55633a3 (patch) | |
tree | c66f374f567b6e7cf6e3d7b6354bce9b0f43328b /Lib/test | |
parent | 421467f8f0c9fe6198f882e1925c47566ca3023b (diff) | |
download | cpython-git-9d38b0dcb2a0ca6fcaaff96642e98448f55633a3.tar.gz |
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 5785eec57f..28d1ef39d4 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""" |