mirror of https://github.com/python/cpython
using dict.unset(k) instead of del dict[k]. consistent with release26-maint
This commit is contained in:
parent
91abd6e68d
commit
5a43e86542
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue