summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_command_upload.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-06-06 20:24:19 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-06-06 20:24:19 (GMT)
commit69cdf9294fee18e3b38278f2baf00c15c7bdbd8e (patch)
tree4a193e1c90957d664cd534a7df38b1ceb0748ba2 /Lib/packaging/tests/test_command_upload.py
parent7373fccd50516909574fc67bb92a899963e96ed9 (diff)
downloadcpython-69cdf9294fee18e3b38278f2baf00c15c7bdbd8e.zip
cpython-69cdf9294fee18e3b38278f2baf00c15c7bdbd8e.tar.gz
cpython-69cdf9294fee18e3b38278f2baf00c15c7bdbd8e.tar.bz2
Fix UnboundLocalError in a finally block of one packaging test
Diffstat (limited to 'Lib/packaging/tests/test_command_upload.py')
-rw-r--r--Lib/packaging/tests/test_command_upload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/packaging/tests/test_command_upload.py b/Lib/packaging/tests/test_command_upload.py
index d7609a2..dbb4db7 100644
--- a/Lib/packaging/tests/test_command_upload.py
+++ b/Lib/packaging/tests/test_command_upload.py
@@ -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: