]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-28441: Ensure `.exe` suffix in `sys.executable` on MinGW and Cygwin (GH-4348)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 27 Feb 2019 09:24:34 +0000 (01:24 -0800)
committerInada Naoki <methane@users.noreply.github.com>
Wed, 27 Feb 2019 09:24:34 +0000 (18:24 +0900)
commite5897b67badeb04a04e16e29f7650d833141d67e
tree86f9760200d67ddcaa019ac1d707fb85e30d85fa
parent2632474957fa9c6311af21be6906d1234853f288
bpo-28441: Ensure `.exe` suffix in `sys.executable` on MinGW and Cygwin (GH-4348)

This is needed to even the run the test suite on buildbots for affected platforms; e.g.:

```
./python.exe  ./Tools/scripts/run_tests.py -j 1 -u all -W --slowest --fail-env-changed --timeout=11700 -j2
/home/embray/src/python/test-worker/3.x.test-worker/build/python -u -W default -bb -E -W error::BytesWarning -m test -r -w -j 1 -u all -W --slowest --fail-env-changed --timeout=11700 -j2
Traceback (most recent call last):
  File "./Tools/scripts/run_tests.py", line 56, in <module>
    main(sys.argv[1:])
  File "./Tools/scripts/run_tests.py", line 52, in main
    os.execv(sys.executable, args)
PermissionError: [Errno 13] Permission denied
make: *** [Makefile:1073: buildbottest] Error 1
```

(cherry picked from commit 7a7693e9cb12e5571c76331db56a28eef9acb6e0)

Co-authored-by: E. M. Bray <erik.m.bray@gmail.com>
Misc/NEWS.d/next/Library/2018-10-04-15-53-14.bpo-28441.2sQENe.rst [new file with mode: 0644]
Modules/getpath.c