commit 313a22339916d2703276d0567c62e33377d858fc
Author: Jakub Bogusz <[email protected]>
Date:   Sat Feb 11 08:23:51 2023 +0100

    - added fix for test_ssl_version test with openssl 3.0.x; release 9

 openssl3.patch | 12 ++++++++++++
 python.spec    |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)
---
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
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))
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python.git/commitdiff/313a22339916d2703276d0567c62e33377d858fc

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to