diff --git a/python-pycurl.spec b/python-pycurl.spec index 15f612277293b988698d60817b75fd378bafa939..1cf259a6283d0e4bb46b2f2aa870e3d310486bd0 100644 --- a/python-pycurl.spec +++ b/python-pycurl.spec @@ -7,13 +7,14 @@ Name: python-%{srcname} Version: 7.44.1 -Release: 3 +Release: 4 Summary: A Python interface to libcurl License: LGPLv2+ or MIT URL: http://pycurl.sourceforge.net/ Source0: %{pypi_source} # drop link-time vs. run-time TLS backend check (#1446850) +Patch01: support_python3.11.patch BuildRequires: gcc libcurl-devel openssl-devel vsftpd @@ -100,6 +101,9 @@ rm -fv tests/fake-curl/libcurl/*.so %{python3_sitearch}/pycurl-%{version}-*.egg-info %changelog +* Mon Nov 18 2024 tzing_t - 7.44.1-4 +- support python3.11 + * Wed Oct 26 2022 zhangruifang - 7.44.1-3 - Rebuild for next release diff --git a/support_python3.11.patch b/support_python3.11.patch new file mode 100644 index 0000000000000000000000000000000000000000..2bd7dc518e626fe6ab09fc03185c9a5cb96cbf20 --- /dev/null +++ b/support_python3.11.patch @@ -0,0 +1,25 @@ +diff --git a/tests/error_test.py b/tests/error_test.py +index 01d0ac5..d4c5218 100644 +--- a/tests/error_test.py ++++ b/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.assertEqual('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.assertEqual('No URL set', self.curl.errstr()) + # repeated checks do not clear value +- self.assertEqual('No URL set!', self.curl.errstr()) ++ self.assertEqual('No URL set', self.curl.errstr()) + # check the type - on all python versions + self.assertEqual(str, type(self.curl.errstr())) + else: