mirror of
https://github.com/python/cpython.git
synced 2024-12-13 03:45:42 +08:00
(Merge 3.2) 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:
commit
242b6ea975
@ -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"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user