summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-20 22:09:09 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-20 22:09:09 (GMT)
commit9d38b0dcb2a0ca6fcaaff96642e98448f55633a3 (patch)
treec66f374f567b6e7cf6e3d7b6354bce9b0f43328b
parent421467f8f0c9fe6198f882e1925c47566ca3023b (diff)
downloadcpython-9d38b0dcb2a0ca6fcaaff96642e98448f55633a3.zip
cpython-9d38b0dcb2a0ca6fcaaff96642e98448f55633a3.tar.gz
cpython-9d38b0dcb2a0ca6fcaaff96642e98448f55633a3.tar.bz2
Close #13401: Skip TestFileTypeW of test_argparse if the current user is root
Patch written by Arfrever Frehtes Taifersar Arahesis.
-rw-r--r--Lib/test/test_argparse.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py
index 5785eec..28d1ef3 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"""