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
b389b482
Commit
b389b482
authored
Feb 27, 2015
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #23526: Fix ResourceWarning in test_httplib. Patch written by Alex Shkop.
parent
0b496378
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
Lib/test/test_httplib.py
Lib/test/test_httplib.py
+3
-0
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/test/test_httplib.py
View file @
b389b482
...
...
@@ -840,6 +840,7 @@ class HTTPSTest(TestCase):
context
=
context
)
h
.
request
(
'GET'
,
'/'
)
resp
=
h
.
getresponse
()
h
.
close
()
self
.
assertIn
(
'nginx'
,
resp
.
getheader
(
'server'
))
@
support
.
system_must_validate_cert
...
...
@@ -851,6 +852,7 @@ class HTTPSTest(TestCase):
h
.
request
(
'GET'
,
'/'
)
resp
=
h
.
getresponse
()
content_type
=
resp
.
getheader
(
'content-type'
)
h
.
close
()
self
.
assertIn
(
'text/html'
,
content_type
)
def
test_networked_good_cert
(
self
):
...
...
@@ -865,6 +867,7 @@ class HTTPSTest(TestCase):
h
.
request
(
'GET'
,
'/'
)
resp
=
h
.
getresponse
()
server_string
=
resp
.
getheader
(
'server'
)
h
.
close
()
self
.
assertIn
(
'nginx'
,
server_string
)
def
test_networked_bad_cert
(
self
):
...
...
Misc/ACKS
View file @
b389b482
...
...
@@ -1247,6 +1247,7 @@ Alexander Shigin
Pete Shinners
Michael Shiplett
John W. Shipman
Alex Shkop
Joel Shprentz
Yue Shuaijie
Terrel Shumway
...
...
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