]> granicus.if.org Git - python/commit
bpo-38456: Use /bin/true in test_subprocess (GH-16736)
authorGregory P. Smith <greg@krypto.org>
Sat, 12 Oct 2019 23:35:53 +0000 (16:35 -0700)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2019 23:35:53 +0000 (16:35 -0700)
commit67b93f80c764bca01c81c989d74a99df208bea4d
tree7d116ba2b5e1f6debe48d6e551eab75540dd3cb3
parentf3751efb5c8b53b37efbbf75d9422c1d11c01646
bpo-38456: Use /bin/true in test_subprocess (GH-16736)

* bpo-38456: Use /bin/true in test_subprocess.

Instead of sys.executable, "-c", "pass" or "import sys; sys.exit(0)"
use /bin/true when it is available.  On a reasonable machine this
shaves up to two seconds wall time off the otherwise ~40sec execution
on a --with-pydebug build.  It should be more notable on many
buildbots or overloaded slower I/O systems (CI, etc).
Lib/test/test_subprocess.py