Message327620
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. |
|
Date |
User |
Action |
Args |
2018-10-13 03:53:41 | ned.deily | set | recipients:
+ ned.deily, vstinner, miss-islington, xtreak, eohm |
2018-10-13 03:53:41 | ned.deily | set | messageid: <1539402821.9.0.788709270274.issue34783@psf.upfronthosting.co.za> |
2018-10-13 03:53:41 | ned.deily | link | issue34783 messages |
2018-10-13 03:53:40 | ned.deily | create | |
|