summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests
Commit message (Collapse)AuthorAgeFilesLines
* #11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch ↵Ezio Melotti2013-03-161-2/+3
| | | | by Thomas Wouters.
* Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*,Terry Jan Reedy2013-03-111-1/+1
| | | | as reported by Serhiy Storchaka and Matthew Barnett.
* Issue #13590: OS X Xcode 4 - improve support for universal extension modulesNed Deily2013-01-311-0/+29
| | | | | | | | | | | | | | | | In particular, fix extension module build failures when trying to use 32-bit-only installer Pythons on systems with Xcode 4 (currently OS X 10.8, 10.7, and optionally 10.6). * Backport 3.3.0 fixes to 2.7 branch (for release in 2.7.4) * Since Xcode 4 removes ppc support, extension module builds now check for ppc compiler support and by default remove ppc and ppc64 archs when they are not available. * Extension module builds now revert to using system installed headers and libs (/usr and /System/Library) if the SDK used to build the interpreter is not installed or has moved. * Try to avoid building extension modules with deprecated and problematic Apple llvm-gcc compiler. If original compiler is not available, use clang instead by default.
* - Issue #17041: Fix testing when Python is configured with theSerhiy Storchaka2013-01-271-2/+3
| | | | --without-doc-strings option.
* Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
| | | | Patch by Serhiy Storchaka.
* Use proper skip instead of reporting success in one distutils testÉric Araujo2012-12-091-7/+1
|
* Fix setup.py register failure with invalid rst in description (#13614).Éric Araujo2012-12-091-4/+21
| | | | Original patch by Julien Courteau and Pierre Paul Lefebvre.
* Ignore .nfs* files in distutils (#7719).Éric Araujo2012-07-032-3/+22
| | | | | | | | These files are created by some NFS clients a file is edited and removed concurrently (see added link in doc for more info). If such a file is removed between distutils calls listdir and copy, it will get confused. Other special files are ignored in sdist (namely VCS directories), but this has to be filtered out earlier.
* Backout buggy patch for #13719Éric Araujo2012-03-071-9/+0
|
* Fix NameErrorÉric Araujo2012-03-051-0/+1
|
* Make distutils’ upload command work with bdist_msi products (#13719).Éric Araujo2012-03-051-5/+13
| | | | Patch by Ralf Schmitt.
* Synchronize some distutils tests with 3.2.Éric Araujo2012-02-263-31/+38
| | | | | | | | - Actually check the contents of the file created by bdist_dumb. - Don’t use “RECORD” as filename for non-PEP 376 record file - Don’t start method name with “_test”, it looks like a disabled test method instead of an helper method - Fix some idioms (assertIn, addCleanup)
* Stop ignoring RPMs in distutils' upload command (#2945).Éric Araujo2012-02-261-0/+9
| | | | | Bug reported by Hartmut Goebel and patch contributed by Carl Robben. Untested backport of the fix committed and tested for 3.2.
* Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884).Éric Araujo2012-02-252-45/+82
| | | | | | | | | | | | | | | These regex changes fix a number of issues for distutils on Windows: - #6884: impossible to include a file starting with 'build' - #9691 and #14004: sdist includes too many files - #13193: test_filelist failures This commit replaces the incorrect changes done in 557a973709de, c566a3447ba1 and 3925081a7ca0 to fix #13193; we were too eager to fix the test failures and I did not study the code enough before greenlighting patches. This time we have unit tests from the problems reported by users to be sure we have the right fix. Thanks to Nadeem Vawda for his help.
* Fix test failure for shared builds caused by #1326113 fixÉric Araujo2012-02-151-1/+2
|
* Fix parsing of build_ext --libraries option (#1326113)Éric Araujo2012-02-151-6/+6
|
* Issue #13193: Fix distutils.filelist tests to always use / as path separator.Nadeem Vawda2012-02-131-13/+11
|
* Issue #13994: Earler partial revert of Distutils enhancements in 2.7Ned Deily2012-02-112-2/+4
| | | | | | | | has left two versions of customize_compiler, the original in distutils.sysconfig and another copy in distutils.ccompiler, with some parts of distutils calling one and others using the other. Complete the revert back to only having one in distutils.sysconfig as is the case in 3.x.
* Issue #13901: Prevent test_distutils failures on OS X with --enable-shared.Ned Deily2012-02-031-2/+8
|
* Limit test scope to those platforms that can save the target filenames. ↵Jason R. Coombs2011-12-281-0/+17
| | | | Reference #11638.
* Issue #11638: Adding test to ensure .tar.gz files can be generated by sdist ↵Jason R. Coombs2011-12-262-2/+51
| | | | | | | command with unicode metadata, based on David Barnett's patch. Issue #11638: Added tests to capture failures in make_tarball with various unicode strings. Following fix for Issue #13639, these tests now pass.
* Issue #7833: Ext. modules built using distutils on Windows no longer get a ↵Mark Hammond2011-10-171-2/+45
| | | | manifest
* Increase test coverage for distutils.filelist (#11751).Éric Araujo2011-10-141-10/+197
| | | | Patch by Justin Love.
* Fix distutils’ check and register Unicode handling (#13114).Éric Araujo2011-10-092-3/+31
| | | | | | | | | The check command was fixed by Kirill Kuzminykh. The register command was using StringIO.getvalue, which uses “''.join” and thus coerces to str using the default encoding (ASCII), so I changed the code to use one extra intermediary list and correctly encode to UTF-8.
* Make C code in one distutils test comply with ISO C (#10359).Éric Araujo2011-10-081-2/+2
| | | | Patch by Hallvard B Furuseth.
* Fix determination of Metadata version (#8933). Patch by Filip Gruszczyński.Éric Araujo2011-09-101-0/+14
|
* Slight cleanup in distutils test_dist.Éric Araujo2011-09-101-54/+49
| | | | | | | | I have tests to add in this file and it’s always nice to start from a clean base. I’ve also changed a test that used to write an invalid config file ('[global]command_packages = etc.' on one line), but the test passes before and after this change, so either it magically works or the test is poorly written. Sigh.
* Issue #12333: fix test_distutils failures under Solaris and derivatives. ↵Jesus Cea2011-09-091-0/+4
| | | | Patch by Antoine Pitrou
* Warn instead of crashing because of invalid path in MANIFEST.in (#8286).Éric Araujo2011-09-021-1/+27
| | | | | sdist used to crash with a full traceback dump instead of printing a nice warning with the faulty line number.
* Enable catching WARN-level logging messages in distutils' test_sdistÉric Araujo2011-09-021-5/+4
|
* Make bdist_* commands respect --skip-build passed to bdist (#10946)Éric Araujo2011-08-291-21/+28
|
* Add FIXME note as a reminderÉric Araujo2011-08-261-0/+2
|
* Branch mergeÉric Araujo2011-08-264-61/+315
|\
| * Backport tests for the distutils install commandÉric Araujo2011-08-261-2/+193
| |
| * Try to fix test_distutils on Windows (#12678)Éric Araujo2011-08-261-0/+1
| |
| * Add tests for build_ext --user (backport from 3.2)Éric Araujo2011-08-261-0/+36
| |
| * Refactor helpers for compiling the xx module in distutils tests.Éric Araujo2011-08-252-59/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I need to copy the xxmodule.c file in other tests, so I moved the support code to distutils.tests.support and improved it: - don’t skip when run from the Lib/distutils/tests directory - use proper skip machinery instead of custom print/return/test suite fiddling. I also took out the fixup_build_ext function, which is needed for tests to pass on Unix shared builds and Windows debug builds. Finally, I cleaned up a few things: - don’t remove directories in tearDown when the parent class’ tearDown has already registered the directories for removal - simplify restoration of sys.path - remove a few unused names found by pyflakes.
* | Issue #12678: Fix distutils sdist test on Windows.Nadeem Vawda2011-08-211-0/+1
|/ | | | Patch by Jeremy Kloth.
* Fix regression with distutils MANIFEST handing (#11104, #8688).Éric Araujo2011-07-311-9/+34
| | | | | | | | | | | | | | | | | | | | | | | The changed behavior of sdist in 2.7 broke packaging for projects that wanted to use a manually-maintained MANIFEST file (instead of having a MANIFEST.in template and letting distutils generate the MANIFEST). The fixes that were committed for #8688 (d29399100973 by Tarek and f7639dcdffc3 by me) did not fix all issues exposed in the bug report, and also added one problem: the MANIFEST file format gained comments, but the read_manifest method was not updated to handle (i.e. ignore) them. This changeset should fix everything; the tests have been expanded and I successfully tested with Mercurial, which suffered from this regression. I have grouped the versionchanged directives for these bugs in one place and added micro version numbers to help users know the quirks of the exact version they’re using. I also removed a stanza in the docs that was forgotten in Tarek’s first changeset. Initial report, thorough diagnosis and patch by John Dennis, further work on the patch by Stephen Thorne, and a few edits and additions by me.
* Issue #9516: Correct and expand OS X deployment target tests in distutilsNed Deily2011-06-291-11/+38
| | | | test_build_ext.
* Issue #12141: Install a copy of template C module file so thatNed Deily2011-06-281-0/+5
| | | | | test_build_ext of test_distutils is no longer silently skipped when run outside of a build directory.
* Remove unnecessary executable bit on one distutils fileÉric Araujo2011-06-041-0/+0
|
* Fix test_distutils when sys.dont_write_bytecode is true (#9831).Éric Araujo2011-05-281-16/+11
| | | | | The tests now pass all combinations of -O/-OO and -B. See also #7071 and #6292 for previous variations on the same theme.
* Branch mergeÉric Araujo2011-05-251-0/+2
|\
| * Make test_distutils pass without zlib (fixes #9435)Éric Araujo2011-05-081-0/+2
| |
* | Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set ↵Ronald Oussoren2011-05-151-1/+55
|/ | | | | | | | | in shell. Without this patch python will fail to start properly when the environment variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is not compatible with the value during Python's build. This is caused by code in sysconfig that was only meant to be used in disutils.
* Fix improper tests in RegisterTestCaseÉric Araujo2011-04-141-3/+3
|
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-162-2/+2
|
* Merged revisions 86236,86240,86332,86340,87271,87273,87447 via svnmerge fromÉric Araujo2011-02-0333-46/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k To comply with the 2.x doc style, the methods in trace.rst use brackets around optional arguments. The rest is a mostly straight merge, modulo support changed to test_support and use of the old super call style in test_tuple. ........ r86236 | eric.araujo | 2010-11-06 03:44:43 +0100 (sam., 06 nov. 2010) | 2 lines Make sure each test can be run standalone (./python Lib/distutils/tests/x.py) ........ r86240 | eric.araujo | 2010-11-06 05:11:59 +0100 (sam., 06 nov. 2010) | 2 lines Prevent ResourceWarnings in test_gettext ........ r86332 | eric.araujo | 2010-11-08 19:15:17 +0100 (lun., 08 nov. 2010) | 4 lines Add missing NEWS entry for a fix committed by Senthil. All recent modifications to distutils should now be covered in NEWS. ........ r86340 | eric.araujo | 2010-11-08 22:48:23 +0100 (lun., 08 nov. 2010) | 2 lines This was actually fixed for the previous alpha. ........ r87271 | eric.araujo | 2010-12-15 20:09:58 +0100 (mer., 15 déc. 2010) | 2 lines Improve trace documentation (#9264). Patch by Eli Bendersky. ........ r87273 | eric.araujo | 2010-12-15 20:30:15 +0100 (mer., 15 déc. 2010) | 2 lines Use nested method directives, rewrap long lines, fix whitespace. ........ r87447 | eric.araujo | 2010-12-23 20:13:05 +0100 (jeu., 23 déc. 2010) | 2 lines Fix typo in superclass method name ........
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-2128-208/+206
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........