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.

Author ned.deily
Recipients eohm, miss-islington, ned.deily, vstinner, xtreak
Date 2018-10-13.03:53:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539402821.9.0.788709270274.issue34783@psf.upfronthosting.co.za>
In-reply-to
Content
Re-opening. The new test_cmd_line_script fails on macOS framework builds because the test case assumes that the file name in sys.executable will appear in the error message.  For macOS framework builds, sys.executable is the file name of the stub launcher and its file name bears no relationship to the file name of the actual python executable:

$ python3.7 -c 'import sys;print(sys.executable)'
/usr/local/bin/python3.7
$ python3.7 -m test test_cmd_line_script
Run tests sequentially
0:00:00 load avg: 1.12 [1/1] test_cmd_line_script
test test_cmd_line_script failed -- Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/test/test_cmd_line_script.py", line 648, in test_nonexisting_script
    self.assertIn(program, err)
AssertionError: 'python3.7' not found in "/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'nonexistingscript.py': [Errno 2] No such file or directory\n"

test_cmd_line_script failed

For now, I'm going to disable the test for macOS frameworks but the test should get fixed.
History
Date User Action Args
2018-10-13 03:53:41ned.deilysetrecipients: + ned.deily, vstinner, miss-islington, xtreak, eohm
2018-10-13 03:53:41ned.deilysetmessageid: <1539402821.9.0.788709270274.issue34783@psf.upfronthosting.co.za>
2018-10-13 03:53:41ned.deilylinkissue34783 messages
2018-10-13 03:53:40ned.deilycreate