diff options
| author | Victor Stinner <vstinner@redhat.com> | 2019-01-16 14:26:20 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-16 14:26:20 (GMT) |
| commit | 07858894689047c77f9c12ddc061d30681368d19 (patch) | |
| tree | 265342755fa909a3db267cc7274f7cdb8929b405 /Lib/test/pythoninfo.py | |
| parent | 92b8322e7ea04b239cb1cb87b78d952f13ddfebb (diff) | |
| download | cpython-07858894689047c77f9c12ddc061d30681368d19.zip cpython-07858894689047c77f9c12ddc061d30681368d19.tar.gz cpython-07858894689047c77f9c12ddc061d30681368d19.tar.bz2 | |
bpo-35537: subprocess can now use os.posix_spawnp (GH-11579)
The subprocess module can now use the os.posix_spawnp() function,
if it is available, to locate the program in the PATH.
Diffstat (limited to 'Lib/test/pythoninfo.py')
| -rw-r--r-- | Lib/test/pythoninfo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index 7e94a31..93d87be 100644 --- a/Lib/test/pythoninfo.py +++ b/Lib/test/pythoninfo.py @@ -612,7 +612,8 @@ def collect_get_config(info_add): def collect_subprocess(info_add): import subprocess - copy_attributes(info_add, subprocess, 'subprocess.%s', ('_USE_POSIX_SPAWN',)) + attrs = ('_USE_POSIX_SPAWN', '_HAVE_POSIX_SPAWNP') + copy_attributes(info_add, subprocess, 'subprocess.%s', attrs) def collect_info(info): |
