Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Cleanup code to initialize unix_shell
  • Loading branch information
vstinner committed Jun 22, 2018
commit 3c1bc2183b5ce7f0634c22a8434224bee4d4652e
8 changes: 5 additions & 3 deletions Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,10 +803,12 @@ def dec(*args, **kwargs):

requires_lzma = unittest.skipUnless(lzma, 'requires lzma')

if not MS_WINDOWS:
unix_shell = '/system/bin/sh' if ANDROID else '/bin/sh'
else:
if MS_WINDOWS:
unix_shell = None
elif ANDROID:
unix_shell = '/system/bin/sh'
else:
unix_shell = '/bin/sh'

# Filename used for testing
if os.name == 'java':
Expand Down