]> git.ipfire.org Git - thirdparty/Python/cpython.git/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)
commit886aba4737a8384339baaee82d842b98b09162d0
tree79c9a98f0eea53bdeb409e357e194d6e3864d80f
parentdc63e9c676e435966b895963934b33672d44016c
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.

This should fix intermittent failures on Windows where ECONNRESET was not
being caught.
Lib/test/test_ssl.py