mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
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:
parent
421467f8f0
commit
9d38b0dcb2
1 changed files with 2 additions and 0 deletions
|
@ -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"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue