forked from pool/python-pycurl
* Fixed build against libcurl < 7.64.1 (patch by Scott Talbert). * Add CURLOPT_MAXLIFETIME_CONN (patch by fsbs). * Easy handle duplication support (patch by fsbs). * Support for unsetting a number of multi options (patch by fsbs). * pycurl classes can now be subclassed (patch by fsbs). * Multi callbacks' thread state management fixed (patch by fsbs). * Add CURL_LOCK_DATA_PSL (patch by fsbs). * Add support for SecureTransport SSL backend (MacOS) (patch by Scott Talbert). * Fixed Python thread initialization causing hangs on operations (patch by Scott Talbert). * getinfo(CURLINFO_FTP_ENTRY_PATH) now handles NULL return from libcurl, returning None in this case. * Python 3.9 is now officially supported (patch by Bill Collins). * Added CURLOPT_DOH_URL (patch by resokou). * Best effort Python 2 support has been reinstated. * Added missing fields to curl_version_info struct (patch by Hasan). * Added CURLINFO_CONDITION_UNMET (patch by Dima Tisnek). * Exposed MAX_CONCURRENT_STREAMS in CurlMulti (patch by Alexandre Pion). * Compilation fixed against Python 3.10 alpha (patch by Kamil Dudka). - Remove patch curl7770_compatibility.patch and remove_nose.patch: * They have both merged upstream. - Modify patch disable_randomly_failing_tests.patch: * Use pytest rather than nose methods. - Add patch curl-789-error-message.patch: * Handle missing ! in a returned error message. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=89
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
Index: pycurl-7.45.1/tests/error_test.py
|
|
===================================================================
|
|
--- pycurl-7.45.1.orig/tests/error_test.py
|
|
+++ pycurl-7.45.1/tests/error_test.py
|
|
@@ -29,7 +29,7 @@ class ErrorTest(unittest.TestCase):
|
|
err, msg = exc.args
|
|
self.assertEqual(pycurl.E_URL_MALFORMAT, err)
|
|
# possibly fragile
|
|
- self.assertEqual('No URL set!', msg)
|
|
+ self.assertIn("No URL set", msg)
|
|
else:
|
|
self.fail('Expected pycurl.error to be raised')
|
|
|
|
@@ -43,9 +43,9 @@ class ErrorTest(unittest.TestCase):
|
|
self.curl.perform()
|
|
except pycurl.error:
|
|
# might be fragile
|
|
- self.assertEqual('No URL set!', self.curl.errstr())
|
|
+ self.assertIn('No URL set', self.curl.errstr())
|
|
# repeated checks do not clear value
|
|
- self.assertEqual('No URL set!', self.curl.errstr())
|
|
+ self.assertIn('No URL set', self.curl.errstr())
|
|
# check the type - on all python versions
|
|
self.assertEqual(str, type(self.curl.errstr()))
|
|
else:
|