]> git.pld-linux.org Git - packages/python.git/commitdiff
- added fix for test_ssl_version test with openssl 3.0.x; release 9 auto/th/python-2.7.18-9
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 11 Feb 2023 07:23:51 +0000 (08:23 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 11 Feb 2023 07:23:51 +0000 (08:23 +0100)
openssl3.patch
python.spec

index ceebe3f214e9334b94e587b5138e86e2c1bd952f..46bfc727c4e785e1af27afe21fe862b9ebc5899c 100644 (file)
@@ -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))
index e421ff835371717ca3d16850d00cee99ac236f4c..75b6c991b682028e8ea9aede2c2c2dece2bd917e 100644 (file)
@@ -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
This page took 0.287816 seconds and 4 git commands to generate.