Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20bd3b0

Browse files
author
Xavier de Gaye
committed
Issue #27027: Added test.support.is_android that is True when this is an
Android build.
1 parent 290b42d commit 20bd3b0

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Lib/test/support/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"anticipate_failure", "load_package_tests", "detect_api_mismatch",
9393
"check__all__",
9494
# sys
95-
"is_jython", "check_impl_detail",
95+
"is_jython", "is_android", "check_impl_detail",
9696
# network
9797
"HOST", "IPV6_ENABLED", "find_unused_port", "bind_port", "open_urlresource",
9898
# processes
@@ -734,6 +734,8 @@ def dec(*args, **kwargs):
734734

735735
is_jython = sys.platform.startswith('java')
736736

737+
is_android = bool(sysconfig.get_config_var('ANDROID_API_LEVEL'))
738+
737739
# Filename used for testing
738740
if os.name == 'java':
739741
# Jython disallows @ in module names

Misc/NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ Documentation
167167
- Issue #27285: Update documentation to reflect the deprecation of ``pyvenv``
168168
and normalize on the term "virtual environment". Patch by Steve Piercy.
169169

170+
Tests
171+
-----
172+
173+
- Issue #27027: Added test.support.is_android that is True when this is an
174+
Android build.
175+
170176

171177
What's New in Python 3.6.0 alpha 2
172178
==================================

0 commit comments

Comments
 (0)