Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29619b2

Browse files
committed
Merged revisions 80375 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r80375 | antoine.pitrou | 2010-04-22 20:00:41 +0200 (jeu., 22 avril 2010) | 3 lines Skip test on old versions of OpenSSL ........
1 parent 22b6f9d commit 29619b2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test_ssl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ def testFetchServerCert(self):
221221
def test_algorithms(self):
222222
# Issue #8484: all algorithms should be available when verifying a
223223
# certificate.
224+
# SHA256 was added in OpenSSL 0.9.8
225+
if ssl.OPENSSL_VERSION_INFO < (0, 9, 8, 0, 15):
226+
self.skipTest("SHA256 not available on %r" % ssl.OPENSSL_VERSION)
224227
# NOTE: https://sha256.tbs-internet.com is another possible test host
225228
remote = ("sha2.hboeck.de", 443)
226229
sha256_cert = os.path.join(os.path.dirname(__file__), "sha256.pem")

0 commit comments

Comments
 (0)