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 Merge spelling and grammar from 3.5 2016-12-18 05:37:21 +00:00
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 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:15:13 -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 17:34:19 -04: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 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 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 use patch context manager instead of decorator because the decorator 'leaks' metadata onto the function 2014-09-20 11:53:12 -04:00
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 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 Use in-memory streams instead of NamedTemporaryFile. (GH-9508) 2018-09-23 14:10:07 +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 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 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 16:17:56 +01:00
test_version.py
test_versionpredicate.py