summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests
Commit message (Collapse)AuthorAgeFilesLines
* bpo-41100: additional fixes for testing on macOS 11 Big Sur IntelNed Deily2020-08-151-1/+1
| | | | | Note: macOS 11 is not yet released, this release of Python is not fully supported on 11.0, and not all tests pass.
* bpo-40055: test_distutils leaves warnings filters unchanged (GH-20095)Miss Islington (bot)2020-05-151-0/+6
| | | | | | | | distutils.tests now saves/restores warnings filters to leave them unchanged. Importing tests imports docutils which imports pkg_resources which adds a warnings filter. (cherry picked from commit 6e57237faf0da8904e0130a11350cae3c5062b82) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.7] bpo-38597: Never statically link extension initialization code on ↵Steve Dower2020-03-031-51/+0
| | | | | Windows (GH-18724) (GH-18759) Automerge-Triggered-By: @zooba
* [3.7] bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12862)Victor Stinner2019-04-171-3/+44
| | | | | | | | | | | | | | | | | | | | | | | | | * 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 228a3c99bdb2d02771bead66a0beabafad3a90d3) * 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 2c4c02f8a876fcf084575dcaf857a0236c81261a)
* bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764)Miss Islington (bot)2019-04-101-0/+3
| | | | | | | Set CUSTOMIZED_OSX_COMPILER to True to disable _osx_support.customize_compiler(). (cherry picked from commit a9bd8925c7fa50dd3cfab125b824ec192133ef49) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-31292: Fixed distutils check --restructuredtext for include directives ↵Miss Islington (bot)2019-03-272-1/+16
| | | | | | | (GH-10605) (cherry picked from commit d5a5a33f12b60129d57f9b423b77d2fcba506834) Co-authored-by: Philipp A <flying-sheep@web.de>
* bpo-36235: Enhance distutils test_customize_compiler() (GH-12403) (GH-12415)Victor Stinner2019-03-181-13/+79
| | | | | | The test test_customize_compiler() now mocks all sysconfig variables and all environment variables used by customize_compiler(). (cherry picked from commit 72c7b372cf145fded93a9a776acc742a60090f95)
* bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) (GH-12348)Victor Stinner2019-03-151-4/+11
| | | | | | | | | | Fix CFLAGS in customize_compiler() of distutils.sysconfig: when the CFLAGS environment variable is defined, don't override CFLAGS variable with the OPT variable anymore. Initial patch written by David Malcolm. Co-Authored-By: David Malcolm <dmalcolm@redhat.com> (cherry picked from commit 86082c22d23285995a32aabb491527c9f5629556)
* bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)Miss Islington (bot)2019-02-051-2/+4
| | | | | (cherry picked from commit 85e102a2b090dd693d0801ae2edb9660cfa0f281) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931)Miss Islington (bot)2018-12-181-9/+25
| | | | | | | | check_environ() of distutils.utils now catchs KeyError on calling pwd.getpwuid(): don't create the HOME environment variable in this case. (cherry picked from commit 17d0c0595e101c4ce76b58e55de37e6b5083e6cd) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419)Miss Islington (bot)2018-12-053-10/+17
| | | | | (cherry picked from commit 67a93b3a0b3814e97ef9d077b21325fc8ce351b2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-34421: Improve distutils logging for non-ASCII strings. (GH-9126) (GH-9506)Serhiy Storchaka2018-09-231-21/+29
| | | | | | | | Use "backslashreplace" instead of "unicode-escape". It is not implementation depended and escapes only non-encodable characters. Also simplify the code. (cherry picked from commit 4b860fd)
* Fixes tests requiring extra environment values on Windows (GH-9462)Steve Dower2018-09-202-0/+5
|
* bpo-34530: Fix distutils find_executable() (GH-9049)Miss Islington (bot)2018-09-041-2/+47
| | | | | | | distutils.spawn.find_executable() now falls back on os.defpath if the PATH environment variable is not set. (cherry picked from commit 39487196c87e28128ea907a0d9b8a88ba53f68d5) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-32304: Fix distutils upload for sdists ending with \x0d (GH-5264)Bo Bayles2018-01-261-0/+26
| | | | Patch by Bo Bayles.
* bpo-19610: Warn if distutils is provided something other than a list to some ↵Neil Schemenauer2017-12-051-10/+38
| | | | | | | | | | | | | | | fields (#4685) * Rather than raise TypeError, warn and call list() on the value. * Fix tests, revise NEWS and whatsnew text. * Revise documentation, a string is okay as well. * Ensure 'requires' and 'obsoletes' are real lists. * Test that requires and obsoletes are turned to lists.
* bpo-19610: setup() now raises TypeError for invalid types (GH-4519)Berker Peksag2017-11-231-0/+44
| | | | | | The Distribution class now explicitly raises an exception when 'classifiers', 'keywords' and 'platforms' fields are not specified as a list.
* bpo-29185: Fix `test_distutils` failures on Android (GH-4438)xdegaye2017-11-182-2/+10
| | | | * Run gzip with separate command line options (Android understands '-f9' as the name of a file). * Creation of a hard link is controled by SELinux on Android.
* bpo-30389 Adds detection of VS 2017 to distutils._msvccompiler (#1632)Steve Dower2017-09-071-2/+26
|
* Remove all mention of Windows IA-64 support (GH-3389)Zachary Ware2017-09-061-7/+0
| | | It was mostly removed long ago.
* remove IRIX support (closes bpo-31341) (#3310)Benjamin Peterson2017-09-041-8/+0
| | | See PEP 11.
* bpo-30132: distutils BuildExtTestCase use temp_cwd (#1380)Victor Stinner2017-05-021-18/+18
| | | | | | | BuildExtTestCase of test_distutils now uses support.temp_cwd() in setUp() to remove files created in the current working in all BuildExtTestCase unit tests, not only test_build_ext(). Move also tearDown() just after setUp().
* bpo-30132: distutils test_build_ext() uses temp_cwd() (#1278)Victor Stinner2017-04-251-0/+7
| | | | | test_build_ext() of test_distutils now uses support.temp_cwd() to prevent the creation of a pdb file in the current working directory on Windows.
* Merge spelling and grammar from 3.5Martin Panter2016-12-181-1/+1
|\
| * Fix spelling and grammar in code comments and documentationMartin Panter2016-12-181-1/+1
| |
* | Issue 26931: Skip the test_distutils tests using a compiler executableXavier de Gaye2016-11-175-24/+20
| | | | | | | | that is not found
* | Some distutils tests require zlib for creating tar.gz source distribution.Serhiy Storchaka2016-10-231-1/+3
|\ \ | |/
| * Some distutils tests require zlib for creating tar.gz source distribution.Serhiy Storchaka2016-10-231-3/+3
| |
* | Issue #28222: Merge from 3.5Berker Peksag2016-10-041-2/+14
|\ \ | |/
| * Issue #28222: Don't fail if pygments is not availableBerker Peksag2016-10-041-2/+14
| | | | | | | | | | | | We can't just skip the test if docutils is available, but pygments is not because the purpose of the test was testing a bug in _check_rst_data().
* | merge 3.5 (#1703178)Benjamin Peterson2016-09-291-0/+7
|\ \ | |/
| * build_ext: correctly parse the link_objects user option (closes #1703178)Benjamin Peterson2016-09-291-0/+7
| | | | | | | | Patch by Valerie Lambert.
| * Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-071-1/+1
| |
* | Issue #22493: Inline flags now should be used only at the start of theSerhiy Storchaka2016-09-111-7/+7
| | | | | | | | | | regular expression. Deprecation warning is emitted if uses them in the middle of the regular expression.
* | Merge backout for test suite fixJason R. Coombs2016-09-021-2/+9
|\ \ | |/
| * Merge backout for test suite fixJason R. Coombs2016-09-021-2/+9
| |\
| | * Backed out changeset cc86e9e102e8Jason R. Coombs2016-09-021-2/+9
| | |
* | | Issue #12885: Merge with 3.5Jason R. Coombs2016-09-021-4/+38
|\ \ \ | |/ /
| * | Issue #12285: Merge with 3.4Jason R. Coombs2016-09-021-4/+38
| |\ \ | | |/
| | * Sort result to avoid spurious errors due to order.Jason R. Coombs2015-08-301-2/+2
| | |
| | * Add docstring and additional test revealing nuances of the implementation as ↵Jason R. Coombs2015-09-191-0/+16
| | | | | | | | | | | | found in setuptools.
| | * Add another test capturing the basic discovery expectation.Jason R. Coombs2015-08-301-0/+11
| | |
| | * Issue #12285: Add test capturing failure.Jason R. Coombs2015-08-301-0/+10
| | |
| | * Use modern mechanism for test discoveryJason R. Coombs2015-08-301-5/+2
| | |
* | | #27904: fix distutils tests.R David Murray2016-08-312-2/+4
| | | | | | | | | | | | Patch by Ville Skyttä.
* | | Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Raymond Hettinger2016-08-301-1/+1
| | |
* | | Merge 3.5Donald Stufft2016-08-032-5/+5
|\ \ \ | |/ /
| * | Merge 3.4Donald Stufft2016-08-032-5/+5
| |\ \ | | |/
| | * Merge 3.3Donald Stufft2016-08-032-4/+4
| | |\
| | | * Switch upload.pypi.io to upload.pypi.orgDonald Stufft2016-08-032-3/+3
| | | |