diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-07-09 10:36:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-09 10:36:55 (GMT) |
commit | cf9c41c422de3774862db964fe3153086bad3f61 (patch) | |
tree | cb03aa0750dee4d79bfd30c1bd78aec558b39fbd /Lib | |
parent | 110a47c4f42cf4db88edc1876899fff8f05190fb (diff) | |
download | cpython-cf9c41c422de3774862db964fe3153086bad3f61.zip cpython-cf9c41c422de3774862db964fe3153086bad3f61.tar.gz cpython-cf9c41c422de3774862db964fe3153086bad3f61.tar.bz2 |
bpo-37322: Fix test_ssl.test_pha_required_nocert() ResourceWarning (GH-14662)
Close the TLS connection in test_pha_required_nocert() of test_ssl to
fix a ResourceWarning.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_ssl.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index d2b9e20..166e286 100644 --- 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: |