]> granicus.if.org Git - python/commit
Issue #26173: Separate bad cert file tests and client rejection test
authorMartin Panter <vadmium+py@gmail.com>
Mon, 1 Feb 2016 21:58:11 +0000 (21:58 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Mon, 1 Feb 2016 21:58:11 +0000 (21:58 +0000)
commit3464ea2807b6ba2d132ef27b65535116ab993eba
treec848161fa1b7478d7b9a96685c886e4938249724
parent5f0c5d92ef4b77f1d8a3610d3bb8022ee71db100
Issue #26173: Separate bad cert file tests and client rejection test

Test test_wrong_cert() runs a server that rejects the client's certificate,
so ECONNRESET is reasonable in addition to SSLError. On the other hand, the
other three tests don't even need to run a server because they are just
testing the parsing of invalid certificate files.

Also fix a ResourceWarning by closing the wrapped socket.
Lib/test/test_ssl.py