diff options
author | Sam James <sam@gentoo.org> | 2023-05-28 23:47:08 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-05-28 23:50:48 +0100 |
commit | 74a7b872051f032cf05b9172df207a59b9f5bf62 (patch) | |
tree | 736d0185dc1f11d349e714213439f50ea6a92c07 /dev-python/pycurl | |
parent | app-text/mdbook: add 0.4.30 (diff) | |
download | gentoo-74a7b872051f032cf05b9172df207a59b9f5bf62.tar.gz gentoo-74a7b872051f032cf05b9172df207a59b9f5bf62.tar.bz2 gentoo-74a7b872051f032cf05b9172df207a59b9f5bf62.zip |
dev-python/pycurl: skip test which needs curl http3 support
http3 needs unstable libraries so let's skip for now.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/pycurl')
-rw-r--r-- | dev-python/pycurl/files/pycurl-7.45.2-skip-http3-test.patch | 28 | ||||
-rw-r--r-- | dev-python/pycurl/pycurl-7.45.2.ebuild | 4 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-python/pycurl/files/pycurl-7.45.2-skip-http3-test.patch b/dev-python/pycurl/files/pycurl-7.45.2-skip-http3-test.patch new file mode 100644 index 000000000000..4ebf3b4b1ba8 --- /dev/null +++ b/dev-python/pycurl/files/pycurl-7.45.2-skip-http3-test.patch @@ -0,0 +1,28 @@ +In Gentoo, we don't yet usually have HTTP3 for curl either. + +https://src.fedoraproject.org/rpms/python-pycurl/raw/rawhide/f/0002-python-pycurl-7.45.2-disable-test_http_version_3.patch + +From 6c55e6822a064edb8dd6dfe1ee21080f4f30b5cf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= <lzaoral@redhat.com> +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. +--- 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/dev-python/pycurl/pycurl-7.45.2.ebuild b/dev-python/pycurl/pycurl-7.45.2.ebuild index d8fd6f7ac032..721c43c1facc 100644 --- a/dev-python/pycurl/pycurl-7.45.2.ebuild +++ b/dev-python/pycurl/pycurl-7.45.2.ebuild @@ -47,6 +47,10 @@ BDEPEND=" ) " +PATCHES=( + "${FILESDIR}"/${PN}-7.45.2-skip-http3-test.patch +) + distutils_enable_tests pytest python_prepare_all() { |