projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
110a47c
)
bpo-37322: Fix test_ssl.test_pha_required_nocert() ResourceWarning (GH-14662)
author
Victor Stinner
<vstinner@redhat.com>
Tue, 9 Jul 2019 10:36:55 +0000
(12:36 +0200)
committer
GitHub
<noreply@github.com>
Tue, 9 Jul 2019 10:36:55 +0000
(12:36 +0200)
Close the TLS connection in test_pha_required_nocert() of test_ssl to
fix a ResourceWarning.
Lib/test/test_ssl.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_ssl.py
b/Lib/test/test_ssl.py
index d2b9e2046d0eecf7132db24640474f7f19c5ae45..166e28683e267f69e9953b8a953a4aa7334156fd 100644
(file)
--- a/
Lib/test/test_ssl.py
+++ b/
Lib/test/test_ssl.py
@@
-2382,6
+2382,7
@@
class ThreadedEchoServer(threading.Thread):
if self.server.chatty and support.verbose:
sys.stdout.write(err.args[1])
# test_pha_required_nocert is expecting this exception
+ self.close()
raise ssl.SSLError('tlsv13 alert certificate required')
except OSError:
if self.server.chatty: