summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2009-10-01 01:19:18 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2009-10-01 01:19:18 (GMT)
commit5a43e865422a80e053c6a42eeb0de80a605e99d5 (patch)
treee1e0e84e3684cb57e6af15ec62ad7c0043b410d1
parent91abd6e68dfa4b0d9d91d7c5c05d5d384c2b2718 (diff)
downloadcpython-5a43e865422a80e053c6a42eeb0de80a605e99d5.zip
cpython-5a43e865422a80e053c6a42eeb0de80a605e99d5.tar.gz
cpython-5a43e865422a80e053c6a42eeb0de80a605e99d5.tar.bz2
using dict.unset(k) instead of del dict[k]. consistent with release26-maint
-rw-r--r--Lib/test/test_urllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index 6eaefa2..266853e 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -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