summaryrefslogtreecommitdiff
path: root/distutils2/tests/test_command_upload_docs.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Change signature of tests.support.LoggingCatcher.get_logs.?ric Araujo2011-11-121-3/+7
| | | | | | I need this for some tests, and it makes code clearer. This commit also changes some assertEqual calls to use (actual, expected) order and fix some pyflakes warnings.
* Clean up some idioms in tests.?ric Araujo2011-11-121-3/+3
| | | | | | | | | | | - Use os.makedirs (I had forgotten about it!) - Let TempdirManager.write_file call os.path.join for us - Let TempdirManager.tearDown go back to the previous working directory for us - Use a skip instead of hiding a method with an underscore - Reset the finalized attribute of command objects before calling ensure_finalized a second time, so that it?s not a no-op - Address pyflakes warnings
* Fix backport changesets part 2: tests?ric Araujo2011-09-181-34/+29
|
* Fix the backport fixes.?ric Araujo2011-09-181-3/+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
* Fixed a python2.4 syntax errors.Alexandru Plugaru2011-08-301-12/+12
|
* Backported packaging from cpython default, overwriting previous version.Vinay Sajip2011-08-181-70/+48
|
* finished the removal of the log moduleTarek Ziade2010-11-051-1/+1
|
* removed core.pyTarek Ziade2010-10-251-1/+1
|
* Rename command's tests filenames to test_command_*, and install_tools.py to ↵Alexis Metaireau2010-10-041-0/+213
install.py The goal is to avoid overlaps between commands and scripts names (for instance the "install" script and the "install" command)