summaryrefslogtreecommitdiff
path: root/distutils2/_backport/tests
Commit message (Collapse)AuthorAgeFilesLines
* Branch merge?ric Araujo2011-11-202-41/+28
|\
| * Merge default?ric Araujo2011-10-081-1/+7
| |\
| * | Start a branch to provide Distutils2 for Python 3.?ric Araujo2011-09-242-42/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This codebase is compatible with 3.1, 3.2 and 3.3. It was converted with 2to3 and a semi-automated diff/merge with packaging in 3.3 to fix some idioms. We?ve now come full circle from 2.x to 3.x to 2.x to 3.x again :) Starting from now, contributors can make patches for packaging (preferred, as the stdlib?s regrtest is very useful), distutils2 or distutils-python3, and we?ll make patches flow between versions.
* | | Remove usage of stdlib shutil.?ric Araujo2011-11-201-1/+1
| |/ |/| | | | | | | | | | | | | | | This should help avoiding issues like #13170. Because of implicit relative imports, _backport.tarfile already imported shutil from the backports instead of the stdlib; I have inlined the only function it needed to remove the circular dependency between these modules.
* | Synchronize test_configure?ric Araujo2011-10-081-1/+7
|/
* Remove fake_dists duplicates in _backport/tests.?ric Araujo2011-09-2438-124/+0
| | | | | | | | The PEP 376 implementation used to live in d2._backport.pkgutil, which was actually a mixed back/forward-port like sysconfig, so its tests were in d2._backport.tests.test_pkgutil and the needed file in the same directory. Now the code lives in d2.database and the files in d2/tests.)
* Always use backported tarfile?ric Araujo2011-09-241-2/+1
|
* Fix name and attribute errors?ric Araujo2011-09-211-1/+1
|
* Fix backport changesets part 3: backported modules.?ric Araujo2011-09-182-158/+287
| | | | | | | | | | shutil, sysconfig, tarfile and their tests have been updated to the latest 3.2 version (except for test_tarfile which is not backported yet) and edited to be compatible with 2.4. Duplicates added in util during the Great Update have been deleted, as well as functions I removed recently in packaging. Unneeded modules in _backport have been deleted or moved to d2.compat.
* Fix backport changesets part 2: tests?ric Araujo2011-09-182-2/+3
|
* Fix the backport fixes.?ric Araujo2011-09-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backports: - sysconfig is now always imported from our backports - when hashlib is not found, our backport is used instead of the md5 module (debatable; we could just drop hashlib) Version-dependent features: - PEP 370 features are only enabled for 2.6+ - the check for sys.dont_write_bytecode was fixed to use getattr with a default value instead of hasattr Idioms/syntax: - octal literals lost their extra 0 - misused try/except blocks have been changed back to try/finally (it?s legal in 2.4 too, it?s only try/except/finally that isn?t) - exception catching uses the regular 2.x idiom instead of sys.exc_info - file objects are closed within finally blocks (this causes much whitespace changes but actually makes diff with packaging easier) Renamed modules: - some missed renamings (_thread, Queue, isAlive, urllib.urlsplit, etc.) were fixed Other: - a few false positive replacements of ?packaging? by ?distutils2? in comments or docstrings were reverted - util.is_packaging regained its name - assorted whitespace/comment/import changes to match packaging
* Remove obsolete files.?ric Araujo2011-09-131-608/+0
| | | | | | test_distutils2.py does nothing that runtests.py or python -m unittest does; pkgutil is no longer the home of the PEP 376 implementation (d2.database is).
* Let the test suite run again?ric Araujo2011-09-121-4/+7
|
* Convert print function calls back to print statements.?ric Araujo2011-09-121-1/+1
| | | | | | This caused pysetup to print out tuples. When multi-line strings are enclosed in parens for line-wrapping purposes, which would not print out a tuple, I have added a space for clarity anyway.
* Branch merge to trunkArc Riley2011-03-1311-72/+1020
|\
| * fix pkgutil test by adding babar 0.1 to installed fake_distPierre-Yves David2011-02-051-1/+1
| |
| * fix indent in testPierre-Yves David2011-02-051-15/+13
| |
| * merge upstream into resources branchesPierre-Yves David2011-02-041-2/+2
| |\
| | * Branch merge.?ric Araujo2011-02-031-2/+2
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | There are a number of bugs and issues in the implementation of mkcfg. The tests should be partially rewritten too (to use RawInputs instead of sys.stdin.write for example, or to compare config file sections without using sets). I?ll look into it.
| | | * renamed DistributionMetadata to MetadataChristophe Combelles2011-01-281-2/+2
| | | |
| * | | Finish the renaming of datafiles to resources.FELD Boris2011-02-041-0/+0
| | | | | | | | | | | | | | | | Change test_ressources.test_resources_open to avoid to install a complete distribution, create a fake one manually.
| * | | Remove lambda use in test._pkgutilFELD Boris2011-01-311-1/+1
| | | |
| * | | Add some tests for retrieving resource path and file object.FELD Boris2011-01-308-39/+58
| |/ / | | | | | | | | | Add methods for retrieving resource path and file object.
| * | Fixing tests on provides_distribution (the two beers bug)Andre Espaze2011-01-302-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | When testing provides_distribution, a package should not provide itself. As a consequence, the corresponding code on EggInfoDistrbution has been removed (even if it should have been done in commit 11adbbb89d73). Thanks for the beers :-)
| * | Branch merge?ric Araujo2011-01-293-46/+964
| |\ \ | | |/ | |/|
| | * Fix one bug and one warning found by pyflakes. Will backport to stdlib.?ric Araujo2010-11-011-0/+1
| | |
| | * Synchronize shutil with latest py3k version (with tests).?ric Araujo2010-11-011-0/+935
| | | | | | | | | | | | | | | | | | The code has been adapted to be compatible with 2.4 and the tests have been copied from the standard library. Some tests are skipped because the code does not use the with statement.
| | * Touch up some comments, fix pyflakes and pep8 warnings?ric Araujo2010-10-311-7/+3
| | |
| | * Clean up imports in pkgutil?ric Araujo2010-10-311-29/+6
| | |
| | * Prevent pydoc failure with zipfile on sys.path (#4005 backport)?ric Araujo2010-10-311-0/+6
| | |
| * | Save up a bit of memory thanks to dict.iter* and __iter__?ric Araujo2010-12-171-4/+4
| | |
* | | Changed test.test_support import to test.support when running on Python 3Arc Riley2010-11-252-5/+3
|/ /
* | Branch merge?ric Araujo2010-11-061-2/+3
|\ \
| * | finished the removal of the log moduleTarek Ziade2010-11-051-2/+3
| |/
* | Make sysconfig.get_makefile_filename public (#9877)?ric Araujo2010-10-221-0/+4
|/
* fixed test after the inclusion of nut-funkyversionTarek Ziade2010-10-071-2/+3
|
* make sure depgraph don't choke on irrational installed versionsTarek Ziade2010-10-032-0/+4
|
* Merge fixes from jkloth?ric Araujo2010-10-013-4/+5
|\
| * More test fiddling?ric Araujo2010-10-013-4/+5
| |
* | Fixed test error involving pkgutil's cachingJeremy Kloth2010-10-011-0/+8
|/
* moved everything in the same dir - we want to include docs/ in the releaseTarek Ziade2010-09-1932-0/+1043