forked from pool/python-gevent
- Add patch handle-python-ssl-changes.patch:
* Handle ssl.shared_ciphers() behaviour changing in Python 3.10. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gevent?expand=0&rev=91
This commit is contained in:
26
handle-python-ssl-changes.patch
Normal file
26
handle-python-ssl-changes.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
Index: gevent-22.10.2/src/greentest/3.10/test_ssl.py
|
||||
===================================================================
|
||||
--- gevent-22.10.2.orig/src/greentest/3.10/test_ssl.py
|
||||
+++ gevent-22.10.2/src/greentest/3.10/test_ssl.py
|
||||
@@ -2306,13 +2306,19 @@ class SimpleBackgroundTests(unittest.Tes
|
||||
self.assertIs(sslobj._sslobj.owner, sslobj)
|
||||
self.assertIsNone(sslobj.cipher())
|
||||
self.assertIsNone(sslobj.version())
|
||||
- self.assertIsNotNone(sslobj.shared_ciphers())
|
||||
+ try:
|
||||
+ self.assertIsNotNone(sslobj.shared_ciphers())
|
||||
+ except AssertionError:
|
||||
+ self.assertIsNone(sslobj.shared_ciphers())
|
||||
self.assertRaises(ValueError, sslobj.getpeercert)
|
||||
if 'tls-unique' in ssl.CHANNEL_BINDING_TYPES:
|
||||
self.assertIsNone(sslobj.get_channel_binding('tls-unique'))
|
||||
self.ssl_io_loop(sock, incoming, outgoing, sslobj.do_handshake)
|
||||
self.assertTrue(sslobj.cipher())
|
||||
- self.assertIsNotNone(sslobj.shared_ciphers())
|
||||
+ try:
|
||||
+ self.assertIsNotNone(sslobj.shared_ciphers())
|
||||
+ except AssertionError:
|
||||
+ self.assertIsNone(sslobj.shared_ciphers())
|
||||
self.assertIsNotNone(sslobj.version())
|
||||
self.assertTrue(sslobj.getpeercert())
|
||||
if 'tls-unique' in ssl.CHANNEL_BINDING_TYPES:
|
||||
Reference in New Issue
Block a user