mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
os.geteuid() may not be available...
This commit is contained in:
parent
79164c8c71
commit
035018d078
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,7 @@ class PycacheTests(unittest.TestCase):
|
|||
|
||||
@unittest.skipUnless(os.name == 'posix',
|
||||
"test meaningful only on posix systems")
|
||||
@unittest.skipIf(os.geteuid() == 0,
|
||||
@unittest.skipIf(hasattr(os, 'geteuid') and os.geteuid() == 0,
|
||||
"due to varying filesystem permission semantics (issue #11956)")
|
||||
def test_unwritable_directory(self):
|
||||
# When the umask causes the new __pycache__ directory to be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue