From 666f8e2fbcd621951300dee3d770e98c4963959b Mon Sep 17 00:00:00 2001 From: zhuofeng Date: Tue, 21 Mar 2023 19:27:58 +0800 Subject: [PATCH] temporarily disable test_http_version_3 --- ...l-7.45.2-disable-test_http_version_3.patch | 29 +++++++++++++++++++ python-pycurl.spec | 10 ++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 0002-python-pycurl-7.45.2-disable-test_http_version_3.patch diff --git a/0002-python-pycurl-7.45.2-disable-test_http_version_3.patch b/0002-python-pycurl-7.45.2-disable-test_http_version_3.patch new file mode 100644 index 0000000..388e48f --- /dev/null +++ b/0002-python-pycurl-7.45.2-disable-test_http_version_3.patch @@ -0,0 +1,29 @@ +From 6c55e6822a064edb8dd6dfe1ee21080f4f30b5cf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= +Date: Tue, 7 Mar 2023 16:32:19 +0100 +Subject: [PATCH] tests: temporarily disable test_http_version_3 + +HTTP3 support in curl is only experimental at the moment and is disabled +in the corresponding Fedora package. +--- + tests/option_constants_test.py | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/tests/option_constants_test.py b/tests/option_constants_test.py +index 7b94164..04dc3da 100644 +--- a/tests/option_constants_test.py ++++ b/tests/option_constants_test.py +@@ -508,10 +508,6 @@ class OptionConstantsSettingTest(unittest.TestCase): + def test_http_version_2prior_knowledge(self): + self.curl.setopt(self.curl.HTTP_VERSION, self.curl.CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE) + +- @util.min_libcurl(7, 66, 0) +- def test_http_version_3(self): +- self.curl.setopt(self.curl.HTTP_VERSION, self.curl.CURL_HTTP_VERSION_3) +- + @util.min_libcurl(7, 21, 5) + def test_sockopt_constants(self): + assert self.curl.SOCKOPT_OK is not None +-- +2.39.2 + diff --git a/python-pycurl.spec b/python-pycurl.spec index 1b13dd6..54bb2f8 100644 --- a/python-pycurl.spec +++ b/python-pycurl.spec @@ -7,13 +7,15 @@ Name: python-%{srcname} Version: 7.45.2 -Release: 1 +Release: 2 Summary: A Python interface to libcurl License: LGPL-2.0+ or MIT URL: http://pycurl.sourceforge.net/ Source0: %{pypi_source} # drop link-time vs. run-time TLS backend check (#1446850) +Patch1: 0002-python-pycurl-7.45.2-disable-test_http_version_3.patch + BuildRequires: gcc libcurl-devel openssl-devel vsftpd %description @@ -97,6 +99,12 @@ rm -fv tests/fake-curl/libcurl/*.so %{python3_sitearch}/pycurl-%{version}-*.egg-info %changelog +* Tue Mar 21 2023 zhuofeng - 7.45.2-2 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:temporarily disable test_http_version_3 + * Thu Jan 19 2023 chendonghui6 - 7.45.2-1 - update version to 7.45.2