[issue7026] test_urllib: unsetting missing 'env' variable
Florent Xicluna
report at bugs.python.org
Fri Jan 8 18:53:09 CET 2010
Florent Xicluna <laxyf at yahoo.fr> added the comment:
Index: Lib/test/test_urllib.py
===================================================================
--- Lib/test/test_urllib.py (revision 77361)
+++ Lib/test/test_urllib.py (working copy)
@@ -101,7 +101,7 @@
# Records changes to env vars
self.env = test_support.EnvironmentVarGuard()
# Delete all proxy related env vars
- for k, v in os.environ.iteritems():
+ for k, v in os.environ.keys():
if 'proxy' in k.lower():
self.env.unset(k)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7026>
_______________________________________
More information about the Python-bugs-list
mailing list