]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Clean up some idioms in packaging tests.
authorÉric Araujo <merwok@netwok.org>
Wed, 19 Oct 2011 06:49:20 +0000 (08:49 +0200)
committerÉric Araujo <merwok@netwok.org>
Wed, 19 Oct 2011 06:49:20 +0000 (08:49 +0200)
commitf3f283a1cbd8b87c911edc0e93baf3d0bfec672e
tree83cd6088fa077e31c04c42148318539538d8ff65
parent79d9c42b04813dc81d91127ec0ffb6d4735e2c0e
Clean up some idioms in packaging tests.

- Use os.makedirs (I had forgotten about it!)
- Let TempdirManager.write_file call os.path.join for us
- Remove custom command added by test_dist
- Use a skip instead of hiding a method with an underscore
- Address pyflakes warnings
13 files changed:
Lib/packaging/tests/__main__.py
Lib/packaging/tests/test_command_clean.py
Lib/packaging/tests/test_command_install_data.py
Lib/packaging/tests/test_command_install_dist.py
Lib/packaging/tests/test_command_test.py
Lib/packaging/tests/test_command_upload.py
Lib/packaging/tests/test_command_upload_docs.py
Lib/packaging/tests/test_create.py
Lib/packaging/tests/test_dist.py
Lib/packaging/tests/test_mixin2to3.py
Lib/packaging/tests/test_uninstall.py
Lib/packaging/tests/test_util.py
Lib/packaging/tests/test_version.py