diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 9320c6243be..6eaefa234c0 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 env[k] + del self.env[k] def tearDown(self): # Restore all proxy related env vars