cpython/Lib/distutils/tests
Victor Stinner 394b991e41
[3.7] bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12862)
* 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.

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.

(cherry picked from commit 228a3c99bd)

* bpo-35755: Remove current directory from posixpath.defpath (GH-11586)

Document the change in a NEWS entry of the Security category.

(cherry picked from commit 2c4c02f8a8)
2019-04-17 18:38:06 +02:00
..
Setup.sample
__init__.py
includetest.rst bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605) 2019-03-27 15:25:57 -07:00
support.py
test_archive_util.py bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) 2018-12-05 12:29:31 -08:00
test_bdist.py Fixes tests requiring extra environment values on Windows (GH-9462) 2018-09-20 14:39:21 -07:00
test_bdist_dumb.py bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) 2018-12-05 12:29:31 -08:00
test_bdist_msi.py
test_bdist_rpm.py Merge spelling and grammar from 3.5 2016-12-18 05:37:21 +00:00
test_bdist_wininst.py Fixes tests requiring extra environment values on Windows (GH-9462) 2018-09-20 14:39:21 -07:00
test_build.py Issue #25985: sys.version_info is now used instead of sys.version 2016-02-11 13:10:36 +02:00
test_build_clib.py Issue 26931: Skip the test_distutils tests using a compiler executable 2016-11-17 09:00:19 +01:00
test_build_ext.py bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744) 2019-02-04 17:54:59 -08:00
test_build_py.py #27904: fix distutils tests. 2016-08-31 11:39:35 -04:00
test_build_scripts.py
test_check.py bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605) 2019-03-27 15:25:57 -07:00
test_clean.py Issue #23277: Remove unused imports in tests. 2016-04-24 21:41:02 +03:00
test_cmd.py
test_config.py Merge 3.5 2016-08-03 18:49:46 -04:00
test_config_cmd.py Issue 26931: Skip the test_distutils tests using a compiler executable 2016-11-17 09:00:19 +01:00
test_core.py Issue #25607: Restore old distutils logging threshold after running tests that 2015-11-12 19:47:38 +02:00
test_cygwinccompiler.py Issue #23277: Remove unused imports in tests. 2016-04-24 21:41:02 +03:00
test_dep_util.py Issue #23277: Remove unused imports in tests. 2016-04-24 21:41:02 +03:00
test_dir_util.py
test_dist.py bpo-19610: Warn if distutils is provided something other than a list to some fields (#4685) 2017-12-04 18:58:12 -08: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 Issue #22493: Inline flags now should be used only at the start of the 2016-09-11 12:50:02 +03:00
test_install.py Issue 26931: Skip the test_distutils tests using a compiler executable 2016-11-17 09:00:19 +01:00
test_install_data.py Issue #23277: Remove unused imports in tests. 2016-04-24 21:41:02 +03:00
test_install_headers.py Issue #23277: Remove unused imports in tests. 2016-04-24 21:41:02 +03:00
test_install_lib.py #27904: fix distutils tests. 2016-08-31 11:39:35 -04:00
test_install_scripts.py
test_log.py bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126) (GH-9506) 2018-09-23 10:31:53 +03:00
test_msvc9compiler.py Issue #27895: Spelling fixes (Contributed by Ville Skyttä). 2016-09-07 12:03:06 +00:00
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 Make PyPIRCCommandTestCase derive from a base class 2016-06-24 08:48:27 +03:00
test_sdist.py bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419) 2018-12-05 12:29:31 -08:00
test_spawn.py [3.7] bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12862) 2019-04-17 18:38:06 +02:00
test_sysconfig.py bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764) 2019-04-10 16:58:55 -07:00
test_text_file.py
test_unixccompiler.py remove IRIX support (closes bpo-31341) (#3310) 2017-09-04 16:36:05 -07:00
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 07:34:54 -08:00
test_version.py
test_versionpredicate.py