1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: Carlos Henrique Lima Melara <charlesmelara@riseup.net>
Date: Thu, 28 Aug 2025 20:37:33 -0300
Subject: 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.
Forwarded: https://github.com/pycurl/pycurl/issues/904
Last-Update: 2025-08-28
---
tests/debug_test.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/debug_test.py b/tests/debug_test.py
index 50da3d8..7c6372c 100644
--- a/tests/debug_test.py
+++ b/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'))
|