summaryrefslogtreecommitdiffstats
path: root/Lib/test/support
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-07-22 10:15:29 (GMT)
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-07-22 10:15:29 (GMT)
commitd141531eb5924159c58fcce779f78d7d04265f54 (patch)
tree9dfc1848978eed2d447e99df3e9abbec19af6cc9 /Lib/test/support
parentde85ed69f4935e639b911606d24d3382ae399b9c (diff)
downloadcpython-d141531eb5924159c58fcce779f78d7d04265f54.zip
cpython-d141531eb5924159c58fcce779f78d7d04265f54.tar.gz
cpython-d141531eb5924159c58fcce779f78d7d04265f54.tar.bz2
Issue #27472: Add test.support.unix_shell as the path to the default shell.
Diffstat (limited to 'Lib/test/support')
-rw-r--r--Lib/test/support/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 2b29668..aa6725f 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -92,7 +92,7 @@ __all__ = [
"anticipate_failure", "load_package_tests", "detect_api_mismatch",
"check__all__",
# sys
- "is_jython", "is_android", "check_impl_detail",
+ "is_jython", "is_android", "check_impl_detail", "unix_shell",
# network
"HOST", "IPV6_ENABLED", "find_unused_port", "bind_port", "open_urlresource",
# processes
@@ -736,6 +736,11 @@ is_jython = sys.platform.startswith('java')
is_android = bool(sysconfig.get_config_var('ANDROID_API_LEVEL'))
+if sys.platform != 'win32':
+ unix_shell = '/system/bin/sh' if is_android else '/bin/sh'
+else:
+ unix_shell = None
+
# Filename used for testing
if os.name == 'java':
# Jython disallows @ in module names