]> git.pld-linux.org Git - packages/python.git/blobdiff - openssl3.patch
- added fix for test_ssl_version test with openssl 3.0.x; release 9
[packages/python.git] / openssl3.patch
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))
This page took 0.043653 seconds and 4 git commands to generate.