diff options
author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-13 09:00:01 (GMT) |
---|---|---|
committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-13 09:00:01 (GMT) |
commit | 3a4e989324cc1f75c9f749c9e1c20de2f43df6e3 (patch) | |
tree | 909f3c636598c4ec5a76916801cb91861ded71ce /Lib/test/test_stat.py | |
parent | fb24eead481a00c9bb86c436461971790fce7937 (diff) | |
download | cpython-3a4e989324cc1f75c9f749c9e1c20de2f43df6e3.zip cpython-3a4e989324cc1f75c9f749c9e1c20de2f43df6e3.tar.gz cpython-3a4e989324cc1f75c9f749c9e1c20de2f43df6e3.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_stat.py')
-rw-r--r-- | Lib/test/test_stat.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_stat.py b/Lib/test/test_stat.py index f1a5938..cd02a6e 100644 --- a/Lib/test/test_stat.py +++ b/Lib/test/test_stat.py @@ -1,7 +1,7 @@ import unittest import os import sys -from test.support import TESTFN, import_fresh_module +from test.support import TESTFN, import_fresh_module, android_not_root c_stat = import_fresh_module('stat', fresh=['_stat']) py_stat = import_fresh_module('stat', blocked=['_stat']) @@ -168,6 +168,7 @@ class TestFilemode: self.assertS_IS("LNK", st_mode) @unittest.skipUnless(hasattr(os, 'mkfifo'), 'os.mkfifo not available') + @unittest.skipIf(android_not_root, "mkfifo not allowed, non root user") def test_fifo(self): os.mkfifo(TESTFN, 0o700) st_mode, modestr = self.get_mode() |