[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

Éric Araujo report at bugs.python.org
Fri Dec 3 07:46:04 CET 2010


Éric Araujo <merwok at netwok.org> added the comment:

Thanks Daniel.  I have good and bad news for this patch.

The bad news is that I don’t want to accept patches without tests.  We need to stop guessing or experimenting with the real PyPI to fix bugs.

The good news is that we have a mock PyPI server in distutils2.  Its use is described at http://distutils2.notmyidea.org/library/distutils2.tests.pypi_server.html and there are examples in the current test suite.  Instructions for patching distutils2 are at http://wiki.python.org/moin/Distutils/FixingBugs .  When a patch that includes a test is written, I will backport the relevant parts to distutils1.

----------
assignee:  -> eric.araujo
components: +Distutils, Distutils2
nosy: +tarek
versions: +3rd party, Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10367>
_______________________________________


More information about the Python-bugs-list mailing list