Files
python-pycurl/handle-change-debug-curl-8.16.0.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

29 lines
1.2 KiB
Diff

From eb7f52eeef85feb6c117678d52803050bbdd7bc8 Mon Sep 17 00:00:00 2001
From: Carlos Henrique Lima Melara <charlesmelara@riseup.net>
Date: Thu, 28 Aug 2025 20:37:33 -0300
Subject: [PATCH] tests: handle change in debug output in curl 8.16.0
Debug message has changed and so the assert in the test is failing.
Handle this by checking the version to pick the expected string to
compare in the test.
---
tests/debug_test.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Index: pycurl-7.45.6/tests/debug_test.py
===================================================================
--- pycurl-7.45.6.orig/tests/debug_test.py
+++ pycurl-7.45.6/tests/debug_test.py
@@ -34,8 +34,10 @@ class DebugTest(unittest.TestCase):
self.check(0, util.b('Trying'))
if util.pycurl_version_less_than(7, 24):
self.check(0, util.b('connected'))
- else:
+ elif util.pycurl_version_less_than(8, 16):
self.check(0, util.b('Connected to %s' % localhost))
+ else:
+ self.check(0, util.b('Established connection to %s' % localhost))
self.check(0, util.b('port 8380'))
# request
self.check(2, util.b('GET /success HTTP/1.1'))