15
0
forked from pool/python-pycurl
Files
python-pycurl/pycurl-libssh.patch
Daniel Garcia 7d4898ba67 - Add patch handle-change-debug-curl-8.16.0.patch (bsc#1249448, gh#pycurl/pycurl@eb7f52eeef85)
- Drop patch test-bottle-flask.patch, not needed anymore
- Update to 7.45.6:
  * Re-enable building Linux wheels with CA bundle autodetection
- 7.45.5
  * Enable GSS-API and brotli support in wheels (patch by Scott Talbert).
  * Add support for calling getinfo with CURLOPT_*_T arguments
    (patch by Scott Talbert)
  * Change wheels to build using shared libraries (vice static libraries)
    (patch by Scott Talbert)
  * Build wheels with curl 8.12.1 (mainly for security fixes)
- 7.45.4
  * Add support for CURLOPT_HAPROXY_CLIENT_IP (patch by Scott Talbert).
  * Port tests from bottle to flask (patch by Miro Hrončok).
  * Add constant for CURL_HTTP_VERSION_3ONLY (patch by Pavel Horáček).
  * Add EFFECTIVE_METHOD info option (patch by Pavel Horáček).
  * Don't use `-flat_namespace` on macOS (patch by Michael Cho).
  * Add some missing GIL checks to callback functions
    (patch by Scott Talbert).
  * Fix assorted bugs in pycurl tests, including a segfault
    (patch by Scott Talbert).  All tests should now pass on Linux and
    macOS.
  * Fix minor bug in examples/multi-socket_action-select.py
    (patch by Oleg Broytman).
  * Build all wheels using the latest version of libcurl and its
    dependencies (patch by Scott Talbert).  All wheels should now have
    openssl, HTTP2, and SSH support.
  * Implement Certificate Authority path autodetection when building
    Linux wheels (patch by Scott Talbert).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=116
2025-09-12 07:31:48 +00:00

67 lines
2.6 KiB
Diff

---
tests/ssh_key_cb_test.py | 31 +++++++++++++++++++++++--------
1 file changed, 23 insertions(+), 8 deletions(-)
--- a/tests/ssh_key_cb_test.py
+++ b/tests/ssh_key_cb_test.py
@@ -33,8 +33,11 @@ class SshKeyCbTest(unittest.TestCase):
def keyfunction(known_key, found_key, match):
return pycurl.KHSTAT_FINE
- self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
- self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)
+ try:
+ self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
+ self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)
+ except pycurl.error as e:
+ self.assertEqual(pycurl.E_UNKNOWN_OPTION, e.args[0])
try:
self.curl.perform()
@@ -47,8 +50,11 @@ class SshKeyCbTest(unittest.TestCase):
def keyfunction(known_key, found_key, match):
return pycurl.KHSTAT_REJECT
- self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
- self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)
+ try:
+ self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
+ self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)
+ except pycurl.error as e:
+ self.assertEqual(pycurl.E_UNKNOWN_OPTION, e.args[0])
try:
self.curl.perform()
@@ -62,8 +68,11 @@ class SshKeyCbTest(unittest.TestCase):
def keyfunction(known_key, found_key, match):
return 'bogus'
- self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
- self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)
+ try:
+ self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
+ self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)
+ except pycurl.error as e:
+ self.assertEqual(pycurl.E_UNKNOWN_OPTION, e.args[0])
try:
self.curl.perform()
@@ -82,9 +91,15 @@ class SshKeyCbUnsetTest(unittest.TestCas
@util.min_libcurl(7, 19, 6)
@util.guard_unknown_libcurl_option
def test_keyfunction_none(self):
- self.curl.setopt(pycurl.SSH_KEYFUNCTION, None)
+ try:
+ self.curl.setopt(pycurl.SSH_KEYFUNCTION, None)
+ except pycurl.error as e:
+ self.assertEqual(pycurl.E_UNKNOWN_OPTION, e.args[0])
@util.min_libcurl(7, 19, 6)
@util.guard_unknown_libcurl_option
def test_keyfunction_unset(self):
- self.curl.unsetopt(pycurl.SSH_KEYFUNCTION)
+ try:
+ self.curl.unsetopt(pycurl.SSH_KEYFUNCTION)
+ except pycurl.error as e:
+ self.assertEqual(pycurl.E_UNKNOWN_OPTION, e.args[0])