This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: add the 'unix_shell' attribute to
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.6
Status: closed Resolution: fixed
Dependencies: 27027 Superseder:
Assigned To: xdegaye Nosy List: python-dev, r.david.murray, vstinner, xdegaye
Priority: normal Keywords: patch

Created on 2016-07-09 15:12 by xdegaye, last changed 2022-04-11 14:58 by admin. This issue is now closed.

File name Uploaded Description Edit
unix_shell_27472.patch xdegaye, 2016-07-11 09:40 review
Messages (5)
msg270044 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2016-07-09 15:12
'/bin/sh' is hard-coded in few places in the test suite, but the Android shell is at '/system/bin/sh', see msg266084.
msg270093 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2016-07-10 15:49
I think a cross reference to issue 16353 is worth making here :)  I presume your intent with this issue is to avoid having to wait for that issue to get resolved.
msg270100 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2016-07-10 16:33
Yes, issue 27027 adds and there is no need now to wait for issue 16353. Thanks David for reminding me, I have just added a cross-reference to issue 16353.
msg270168 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2016-07-11 09:40
The attached patch ignores the following test modules listed in msg266084:

Lib/distutils/tests/|68 col 31| ("#!/bin/sh\n"
Lib/distutils/tests/|57 col 38| write_script("", ("#!/bin/sh\n"
    The scripts are not meant to be run.

Lib/test/|46 col 24| f.write("#!/bin/sh\n/bin/echo OK\n")
Lib/test/|58 col 24| f.write("#!/bin/sh\n/bin/echo ExpectedOutput\n")
Lib/test/|149 col 28| f.write("#!/bin/sh\n/bin/echo " + c_output)
Lib/test/|205 col 24| f.write("#!/bin/sh\nexit 255")
    These tests run only on the darwin platform.

Lib/test/|1645 col 15| sh = '/bin/sh'
Lib/test/|1647 col 33| # Test will fail if /bin/sh is a symlink to csh.
    This test is specific to bash or ksh.
msg270984 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-07-22 10:36
New changeset 15835311b5e6 by Xavier de Gaye in branch 'default':
Issue #27472: Add as the path to the default shell.
Date User Action Args
2022-04-11 14:58:33adminsetgithub: 71659
2016-07-22 10:38:17xdegayesetstatus: open -> closed
resolution: fixed
stage: commit review -> resolved
2016-07-22 10:36:43python-devsetnosy: + python-dev
messages: + msg270984
2016-07-19 15:49:15xdegayesetnosy: + vstinner

stage: patch review -> commit review
2016-07-11 09:40:47xdegayesetfiles: + unix_shell_27472.patch
keywords: + patch
messages: + msg270168

stage: needs patch -> patch review
2016-07-10 16:33:22xdegayesetmessages: + msg270100
2016-07-10 15:49:29r.david.murraysetnosy: + r.david.murray
messages: + msg270093
2016-07-09 15:15:57xdegayelinkissue26865 dependencies
2016-07-09 15:13:45xdegayesetdependencies: + add the 'is_android' attribute to
2016-07-09 15:12:35xdegayecreate