]> granicus.if.org Git - python/commitdiff
using dict.unset(k) instead of del dict[k]. consistent with release26-maint
authorSenthil Kumaran <orsenthil@gmail.com>
Thu, 1 Oct 2009 01:19:18 +0000 (01:19 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Thu, 1 Oct 2009 01:19:18 +0000 (01:19 +0000)
Lib/test/test_urllib.py

index 6eaefa234c013e3313d8fe35297f7bbc5ff12ef1..266853e8a943e30f12ab3cf20acbffcee91a69df 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 self.env[k]
+                env.unset(k)
 
     def tearDown(self):
         # Restore all proxy related env vars