diff options
| author | Éric Araujo <merwok@netwok.org> | 2011-10-19 06:49:20 (GMT) |
|---|---|---|
| committer | Éric Araujo <merwok@netwok.org> | 2011-10-19 06:49:20 (GMT) |
| commit | f3f283a1cbd8b87c911edc0e93baf3d0bfec672e (patch) | |
| tree | 83cd6088fa077e31c04c42148318539538d8ff65 /Lib/packaging/tests/test_create.py | |
| parent | 79d9c42b04813dc81d91127ec0ffb6d4735e2c0e (diff) | |
| download | cpython-f3f283a1cbd8b87c911edc0e93baf3d0bfec672e.zip cpython-f3f283a1cbd8b87c911edc0e93baf3d0bfec672e.tar.gz cpython-f3f283a1cbd8b87c911edc0e93baf3d0bfec672e.tar.bz2 | |
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
Diffstat (limited to 'Lib/packaging/tests/test_create.py')
| -rw-r--r-- | Lib/packaging/tests/test_create.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/packaging/tests/test_create.py b/Lib/packaging/tests/test_create.py index b896619..16dbfb7 100644 --- a/Lib/packaging/tests/test_create.py +++ b/Lib/packaging/tests/test_create.py @@ -80,8 +80,7 @@ class CreateTestCase(support.TempdirManager, os.mkdir(os.path.join(tempdir, dir_)) for file_ in files: - path = os.path.join(tempdir, file_) - self.write_file(path, 'xxx') + self.write_file((tempdir, file_), 'xxx') mainprogram._find_files() mainprogram.data['packages'].sort() |
