mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #27472: Add test.support.unix_shell as the path to the default shell.
This commit is contained in:
parent
de85ed69f4
commit
d141531eb5
5 changed files with 24 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue