Commit 69cdf929 authored by Éric Araujo's avatar Éric Araujo

Fix UnboundLocalError in a finally block of one packaging test

parent 7373fccd
......@@ -140,8 +140,8 @@ class UploadTestCase(support.TempdirManager, support.EnvironRestorer,
cmd.upload_docs = True
cmd.ensure_finalized()
cmd.repository = self.pypi.full_address
prev_dir = os.getcwd()
try:
prev_dir = os.getcwd()
os.chdir(self.tmp_dir)
cmd.run()
finally:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment