diff options
author | Malcolm Smith <smith@chaquo.com> | 2024-10-27 02:35:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-27 02:35:53 (GMT) |
commit | c51b56038ba344dece607eb5f035dca544187813 (patch) | |
tree | 1b083c178ffaf8552976307ca11b720f24f81732 /Lib/test/support | |
parent | 44becb8cba677cbfdbcf2f7652277e5e1efc4f20 (diff) | |
download | cpython-c51b56038ba344dece607eb5f035dca544187813.zip cpython-c51b56038ba344dece607eb5f035dca544187813.tar.gz cpython-c51b56038ba344dece607eb5f035dca544187813.tar.bz2 |
Android: Update tests for newly-available functions affected by SELinux (#126015)
Skip tests on Android that involve use of SELinux-protected methods.
Diffstat (limited to 'Lib/test/support')
-rw-r--r-- | Lib/test/support/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index ff917c9..7c1ef42 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -520,6 +520,11 @@ is_jython = sys.platform.startswith('java') is_android = sys.platform == "android" +def skip_android_selinux(name): + return unittest.skipIf( + sys.platform == "android", f"Android blocks {name} with SELinux" + ) + if sys.platform not in {"win32", "vxworks", "ios", "tvos", "watchos"}: unix_shell = '/system/bin/sh' if is_android else '/bin/sh' else: |