Fix UnboundLocalError in a finally block of one packaging test

This commit is contained in:
Éric Araujo 2011-06-06 22:24:19 +02:00
parent 7373fccd50
commit 69cdf9294f
1 changed files with 1 additions and 1 deletions

View File

@ -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: