This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author srid
Recipients srid
Date 2009-10-01.00:49:08
SpamBayes Score 1.0286832e-08
Marked as misclassified No
Message-id <1254358150.75.0.46389883722.issue7026@psf.upfronthosting.co.za>
In-reply-to
Content
test test_urllib failed -- Traceback (most recent call last):
  File "/home/apy/rrun/tmp/autotest/apy/lib/python2.6/test/
test_urllib.py", line 106, in setUp
    env.unset(k)
NameError: global name 'env' is not defined


Looking in trunk's copy I see this:

    def setUp(self):
        # Records changes to env vars
        self.env = test_support.EnvironmentVarGuard()
        # Delete all proxy related env vars
        for k, v in os.environ.iteritems():
            if 'proxy' in k.lower():
                del env[k]

Should not that be "del self.env[k]"?
History
Date User Action Args
2009-10-01 00:49:11sridsetrecipients: + srid
2009-10-01 00:49:10sridsetmessageid: <1254358150.75.0.46389883722.issue7026@psf.upfronthosting.co.za>
2009-10-01 00:49:09sridlinkissue7026 messages
2009-10-01 00:49:08sridcreate