cpython/Lib/distutils/tests
Victor Stinner 228a3c99bd
bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858)
shutil.which() and distutils.spawn.find_executable() now use
os.confstr("CS_PATH") if available instead of os.defpath, if the PATH
environment variable is not set.

Don't use os.confstr("CS_PATH") nor os.defpath if the PATH
environment variable is set to an empty string to mimick Unix 'which'
command behavior.

Changes:

* find_executable() now starts by checking for the executable in the
  current working directly case. Add an explicit
  "if not path: return None".
* Add tests for PATH='' (empty string), PATH=':' and for PATHEXT.
2019-04-17 16:26:36 +02:00
..
Setup.sample
__init__.py
includetest.rst bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605) 2019-03-27 17:34:19 -04:00
support.py
test_archive_util.py bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) 2018-12-05 21:46:25 +02:00
test_bdist.py bpo-34011: Fixes missing venv files and other tests (GH-9458) 2018-09-20 13:38:34 -07:00
test_bdist_dumb.py bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) 2018-12-05 21:46:25 +02:00
test_bdist_msi.py
test_bdist_rpm.py
test_bdist_wininst.py bpo-34011: Fixes missing venv files and other tests (GH-9458) 2018-09-20 13:38:34 -07:00
test_build.py
test_build_clib.py
test_build_ext.py bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744) 2019-02-04 17:15:13 -08:00
test_build_py.py
test_build_scripts.py
test_check.py bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605) 2019-03-27 17:34:19 -04:00
test_clean.py
test_cmd.py
test_config.py bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282) 2019-03-12 08:39:57 -07:00
test_config_cmd.py bpo-11191: skip unsupported test_distutils case for AIX with xlc (GH-8709) 2018-12-29 00:03:17 +10:00
test_core.py
test_cygwinccompiler.py
test_dep_util.py
test_dir_util.py
test_dist.py bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282) 2019-03-12 08:39:57 -07:00
test_extension.py
test_file_util.py bpo-29185: Fix `test_distutils` failures on Android (GH-4438) 2017-11-18 18:17:16 +01:00
test_filelist.py
test_install.py
test_install_data.py
test_install_headers.py
test_install_lib.py
test_install_scripts.py
test_log.py Use in-memory streams instead of NamedTemporaryFile. (GH-9508) 2018-09-23 14:10:07 +03:00
test_msvc9compiler.py
test_msvccompiler.py bpo-30389 Adds detection of VS 2017 to distutils._msvccompiler (#1632) 2017-09-07 11:49:23 -07:00
test_register.py
test_sdist.py bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) 2018-12-05 21:46:25 +02:00
test_spawn.py bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858) 2019-04-17 16:26:36 +02:00
test_sysconfig.py bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764) 2019-04-11 01:38:48 +02:00
test_text_file.py
test_unixccompiler.py
test_upload.py bpo-32304: Fix distutils upload for sdists ending with \x0d (GH-5264) 2018-01-25 19:02:03 -05:00
test_util.py bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) 2018-12-18 16:17:56 +01:00
test_version.py
test_versionpredicate.py