Issue #27472: Add test.support.unix_shell as the path to the default shell.

This commit is contained in:
Xavier de Gaye 2016-07-22 12:15:29 +02:00
parent de85ed69f4
commit d141531eb5
5 changed files with 24 additions and 13 deletions

View file

@ -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