Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
77c2f936
Commit
77c2f936
authored
Oct 21, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure to call iteritems()
parent
015c84b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
Lib/test/test_urllib.py
Lib/test/test_urllib.py
+1
-3
No files found.
Lib/test/test_urllib.py
View file @
77c2f936
...
...
@@ -98,7 +98,6 @@ class urlopen_FileTests(unittest.TestCase):
class
ProxyTests
(
unittest
.
TestCase
):
def
setUp
(
self
):
unittest
.
TestCase
.
setUp
(
self
)
# Save all proxy related env vars
self
.
_saved_environ
=
dict
([(
k
,
v
)
for
k
,
v
in
os
.
environ
.
iteritems
()
if
k
.
lower
().
find
(
'proxy'
)
>=
0
])
...
...
@@ -107,9 +106,8 @@ class ProxyTests(unittest.TestCase):
del
os
.
environ
[
k
]
def
tearDown
(
self
):
unittest
.
TestCase
.
tearDown
(
self
)
# Restore all proxy related env vars
for
k
,
v
in
self
.
_saved_environ
:
for
k
,
v
in
self
.
_saved_environ
.
iteritems
()
:
os
.
environ
[
k
]
=
v
def
test_getproxies_environment_keep_no_proxies
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment