diff options
author | xdegaye <xdegaye@gmail.com> | 2017-11-12 16:31:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-12 16:31:07 (GMT) |
commit | 92c2ca7633c881a56157f2fb8b2e1b8c7114e5fb (patch) | |
tree | e2f19b5353b11b39f9f375aaa5e785156b033ada /Lib/test/support | |
parent | e0582a37c8d1776a2fd4968e9216f3a05f780276 (diff) | |
download | cpython-92c2ca7633c881a56157f2fb8b2e1b8c7114e5fb.zip cpython-92c2ca7633c881a56157f2fb8b2e1b8c7114e5fb.tar.gz cpython-92c2ca7633c881a56157f2fb8b2e1b8c7114e5fb.tar.bz2 |
bpo-28759: Skip some tests on PermissionError raised by Android (GH-4350)
Access to mkfifo(), mknod() and hard link creation is controled
by SELinux on Android.
Also remove test.support.android_not_root.
Diffstat (limited to 'Lib/test/support')
-rw-r--r-- | Lib/test/support/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index d051f96..527cf7f 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -90,7 +90,7 @@ __all__ = [ "check__all__", "requires_android_level", "requires_multiprocessing_queue", # sys "is_jython", "is_android", "check_impl_detail", "unix_shell", - "setswitchinterval", "android_not_root", + "setswitchinterval", # network "HOST", "IPV6_ENABLED", "find_unused_port", "bind_port", "open_urlresource", "bind_unix_socket", @@ -780,7 +780,6 @@ try: except AttributeError: # sys.getandroidapilevel() is only available on Android is_android = False -android_not_root = (is_android and os.geteuid() != 0) if sys.platform != 'win32': unix_shell = '/system/bin/sh' if is_android else '/bin/sh' |