summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_database.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove packaging from the standard library.Éric Araujo2012-06-241-686/+0
| | | | | | Distutils2 will live on on PyPI and be included in the stdlib when it is ready. See discussion starting at http://mail.python.org/pipermail/python-dev/2012-June/120430.html
* Add tests to check initial content of packaging.database cachesÉric Araujo2011-11-141-0/+7
|
* Make a number of small changes to ease the backport to distutils2Éric Araujo2011-09-181-2/+3
|
* Issue #12765: Fix packaging.test.test_database failures on OS X dueNed Deily2011-09-151-0/+1
| | | | | to unwarranted assumption about absolute paths: on OS X /var is a symlink to /private/var. (Also true for /etc and /tmp).
* Fix packaging.database.Distribution.list_distinfo_files (#12785).Éric Araujo2011-09-151-22/+24
| | | | | | | | | | | This method was supposed to return only the file under the dist-info directory, but it actually returned all installed files. The tests didn’t catch this because they were flawed; I updated them. Thanks to Nadeem Vawda and Jeremy Kloth for testing. As a bonus, the removal of os.path.relpath use should also fix the Windows buildbots.
* Stop trying to write into the stdlib during packaging tests (#12331).Éric Araujo2011-07-311-23/+31
| | | | | | | | | | This prevents tests from failing when run from a Python installed in a read-only directory. The code is a bit uglier; shutil.copytree calls copystat on directories behind our back, so I had to add an os.walk with os.chmod (*and* os.path.join!) calls. shutil, I am disappoint. This changeset is dedicated to the hundreds of neurons that were lost while I was debugging this on an otherwise fine afternoon.
* Minor packaging cleanup.Éric Araujo2011-07-291-5/+5
| | | | | - Use shortcut dist.version instead of going through metadata; - Use %r throughout to display project names and paths.
* Stop binding sys.path as default parameter value in packaging.Éric Araujo2011-06-161-6/+5
| | | | | | | | | | | | | The two public functions in database default to sys.path if the given *paths* argument is None; the private functions don’t have default values for their arguments anymore, which is fine as the public functions that call them pass their arguments down. Likewise in install, the functions will pass down their *paths* arguments down to database functions. A one-line unneeded function in install was removed instead of being changed, and the few remaining tests that used brute-force restoration of sys.path have been cleaned up to use sys.path.remove.
* cleanup packaging.databaseTarek Ziade2011-05-301-5/+3
|
* a resource module for 2 functions is overkill. database is the right place ↵Tarek Ziade2011-05-301-3/+156
| | | | for those
* use the same line terminator everywhereTarek Ziade2011-05-211-2/+5
|
* Skip tests that require zlib in the packaging tests. Also add a ↵Ezio Melotti2011-05-191-0/+8
| | | | requires_zlib decorator to test.support.
* package: replace open(fn, 'w').close() by open(fn, 'wb').close()Victor Stinner2011-05-191-1/+1
| | | | | We don't need to open the files in text mode just to create them (or update their modification time).
* initial import of the packaging package in the standard libraryTarek Ziade2011-05-191-0/+506