Fix UnboundLocalError in a finally block of one packaging test
This commit is contained in:
parent
7373fccd50
commit
69cdf9294f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue