[Python-checkins] cpython: Issue #27027: Added test.support.is_android that is True when this is an
xavier.degaye
python-checkins at python.org
Sun Jul 10 12:21:28 EDT 2016
https://hg.python.org/cpython/rev/41dfd92f48f0
changeset: 102297:41dfd92f48f0
parent: 102295:324ade62c0f0
user: Xavier de Gaye <xdegaye at users.sourceforge.net>
date: Sun Jul 10 18:20:15 2016 +0200
summary:
Issue #27027: Added test.support.is_android that is True when this is an
Android build.
files:
Lib/test/support/__init__.py | 4 +++-
Misc/NEWS | 6 ++++++
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -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(sysconfig.get_config_var('ANDROID_API_LEVEL'))
+
# Filename used for testing
if os.name == 'java':
# Jython disallows @ in module names
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -167,6 +167,12 @@
- Issue #27285: Update documentation to reflect the deprecation of ``pyvenv``
and normalize on the term "virtual environment". Patch by Steve Piercy.
+Tests
+-----
+
+- Issue #27027: Added test.support.is_android that is True when this is an
+ Android build.
+
What's New in Python 3.6.0 alpha 2
==================================
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list