mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #28759: Fix the tests that fail with PermissionError when run as
a non-root user on Android where access rights are controled by SELinux MAC.
This commit is contained in:
parent
fb24eead48
commit
3a4e989324
7 changed files with 22 additions and 3 deletions
|
@ -10,6 +10,7 @@ import tempfile
|
|||
import unittest
|
||||
|
||||
from test import support
|
||||
android_not_root = support.android_not_root
|
||||
TESTFN = support.TESTFN
|
||||
|
||||
try:
|
||||
|
@ -1864,6 +1865,7 @@ class _BasePathTest(object):
|
|||
self.assertFalse((P / 'fileA' / 'bah').is_fifo())
|
||||
|
||||
@unittest.skipUnless(hasattr(os, "mkfifo"), "os.mkfifo() required")
|
||||
@unittest.skipIf(android_not_root, "mkfifo not allowed, non root user")
|
||||
def test_is_fifo_true(self):
|
||||
P = self.cls(BASE, 'myfifo')
|
||||
os.mkfifo(str(P))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue