]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43562: fix test_ssl to skip on unreachable network (GH-24937) (GH-25046)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 29 Mar 2021 19:37:32 +0000 (12:37 -0700)
committerGitHub <noreply@github.com>
Mon, 29 Mar 2021 19:37:32 +0000 (21:37 +0200)
commitacb584958e215aff8fc8f5e2eb3fef481b662f69
tree92aaace2602634b1db438baeb197c2913312fcfb
parentf1d53bcd536036c0a0c39962fbc0f465b5865492
bpo-43562: fix test_ssl to skip on unreachable network (GH-24937) (GH-25046)

This test checks result code of the connection directly, so it never raises an exception that can be suppressed by `support.transient_internet`. Directly support skipping the test in case of unreachable network.
(cherry picked from commit 29c451c6989c3c94fa0a9facf187c24f3cbf2420)

Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: Carl Meyer <carl@oddbird.net>
Lib/test/test_ssl.py