From: Christian Heimes Date: Sun, 25 Aug 2013 12:44:27 +0000 (+0200) Subject: Fix test X-Git-Tag: v2.7.6rc1~197 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0c8373e32f5d0512f81dc5ff2d55c51321932eb;p=thirdparty%2FPython%2Fcpython.git Fix test --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index f5390f68067e..9c33c8f421a1 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -137,7 +137,7 @@ class BasicSocketTests(unittest.TestCase): (('emailAddress', 'python-dev@python.org'),)) self.assertEqual(p['subject'], subject) self.assertEqual(p['issuer'], subject) - if ssl._OPENSSL_API_VERSION >= (0, 9, 8): + if ssl.OPENSSL_VERSION_INFO >= (0, 9, 8): san = (('DNS', 'altnull.python.org\x00example.com'), ('email', 'null@python.org\x00user@example.org'), ('URI', 'http://null.python.org\x00http://example.org'),