From: Jakub Bogusz Date: Sat, 11 Feb 2023 07:23:51 +0000 (+0100) Subject: - added fix for test_ssl_version test with openssl 3.0.x; release 9 X-Git-Tag: auto/th/python-2.7.18-9 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=313a22339916d2703276d0567c62e33377d858fc;p=packages%2Fpython.git - added fix for test_ssl_version test with openssl 3.0.x; release 9 --- diff --git a/openssl3.patch b/openssl3.patch index ceebe3f..46bfc72 100644 --- a/openssl3.patch +++ b/openssl3.patch @@ -15688,3 +15688,15 @@ diff -urN Python-2.7.18/Tools/ssl/make_ssl_data.py Python-2.7.18.ssl3/Tools/ssl/ - if not use_stdout: - f.close() + main() +--- Python-2.7.18/Lib/test/test_ssl.py.orig 2023-02-10 22:49:15.749209456 +0100 ++++ Python-2.7.18/Lib/test/test_ssl.py 2023-02-11 07:47:08.331040548 +0100 +@@ -363,6 +363,9 @@ class BasicSocketTests(unittest.TestCase + if IS_LIBRESSL: + self.assertTrue(s.startswith("LibreSSL {:d}".format(major)), + (s, t, hex(n))) ++ elif major >= 3: ++ self.assertTrue(s.startswith("OpenSSL {:d}.{:d}.{:d}".format(major, minor, patch)), ++ (s, t)) + else: + self.assertTrue(s.startswith("OpenSSL {:d}.{:d}.{:d}".format(major, minor, fix)), + (s, t)) diff --git a/python.spec b/python.spec index e421ff8..75b6c99 100644 --- a/python.spec +++ b/python.spec @@ -39,7 +39,7 @@ Summary(tr.UTF-8): X arayüzlü, yüksek düzeyli, kabuk yorumlayıcı dili Summary(uk.UTF-8): Мова програмування дуже високого рівня з X-інтерфейсом Name: python Version: %{py_ver}.18 -Release: 8 +Release: 9 Epoch: 1 License: PSF Group: Development/Languages/Python