]> granicus.if.org Git - python/commitdiff
Fix for issue7026 test_urllib: unsetting missing 'env' variable.
authorSenthil Kumaran <orsenthil@gmail.com>
Thu, 1 Oct 2009 01:07:03 +0000 (01:07 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Thu, 1 Oct 2009 01:07:03 +0000 (01:07 +0000)
Lib/test/test_urllib.py

index 9320c6243bec1acc0d4d478ab5f7dbb765b93496..6eaefa234c013e3313d8fe35297f7bbc5ff12ef1 100644 (file)
@@ -103,7 +103,7 @@ class ProxyTests(unittest.TestCase):
         # Delete all proxy related env vars
         for k, v in os.environ.iteritems():
             if 'proxy' in k.lower():
-                del env[k]
+                del self.env[k]
 
     def tearDown(self):
         # Restore all proxy related env vars