diff -r eee959fee5f5 Lib/test/support/__init__.py --- a/Lib/test/support/__init__.py Sat May 07 21:13:50 2016 +0300 +++ b/Lib/test/support/__init__.py Fri May 20 10:21:24 2016 +0200 @@ -92,7 +92,7 @@ "anticipate_failure", "load_package_tests", "detect_api_mismatch", "check__all__", # sys - "is_jython", "check_impl_detail", + "is_jython", "is_android", "check_impl_detail", # network "HOST", "IPV6_ENABLED", "find_unused_port", "bind_port", "open_urlresource", # processes @@ -734,6 +734,8 @@ is_jython = sys.platform.startswith('java') +is_android = bool(platform.android_ver()[0]) + # Filename used for testing if os.name == 'java': # Jython disallows @ in module names