mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
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
This commit is contained in:
parent
79d9c42b04
commit
f3f283a1cb
13 changed files with 40 additions and 37 deletions
|
@ -129,7 +129,7 @@ class UploadTestCase(support.TempdirManager, support.EnvironRestorer,
|
|||
dist_files = [(command, pyversion, filename)]
|
||||
docs_path = os.path.join(self.tmp_dir, "build", "docs")
|
||||
os.makedirs(docs_path)
|
||||
self.write_file(os.path.join(docs_path, "index.html"), "yellow")
|
||||
self.write_file((docs_path, "index.html"), "yellow")
|
||||
self.write_file(self.rc, PYPIRC)
|
||||
|
||||
# let's run it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue