mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #27027: Added test.support.is_android that is True when this is an
Android build.
This commit is contained in:
parent
290b42de73
commit
20bd3b070a
2 changed files with 9 additions and 1 deletions
|
@ -92,7 +92,7 @@ __all__ = [
|
|||
"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 @@ requires_lzma = unittest.skipUnless(lzma, 'requires lzma')
|
|||
|
||||
is_jython = sys.platform.startswith('java')
|
||||
|
||||
is_android = bool(sysconfig.get_config_var('ANDROID_API_LEVEL'))
|
||||
|
||||
# Filename used for testing
|
||||
if os.name == 'java':
|
||||
# Jython disallows @ in module names
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue