From 3310d0f37d5c7d2c9c9c487de0fe501e81013ee3a13b884217ebbd852d74661b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 2 Mar 2023 10:47:31 +0000 Subject: [PATCH] - Refreshed support-python-311.patch: with fix of CVE-2023-24329 (bsc#1208471), the test test_url_parsing.TestScheme.test_not_a_scheme2 fails on all openSUSE/SLE Python interpreters. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=44 --- python-yarl.changes | 8 ++++++++ support-python-311.patch | 11 +++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/python-yarl.changes b/python-yarl.changes index 1661bd5..1326de8 100644 --- a/python-yarl.changes +++ b/python-yarl.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Mar 2 10:41:59 UTC 2023 - Matej Cepl + +- Refreshed support-python-311.patch: with fix + of CVE-2023-24329 (bsc#1208471), the test + test_url_parsing.TestScheme.test_not_a_scheme2 fails on all + openSUSE/SLE Python interpreters. + ------------------------------------------------------------------- Mon Jan 9 04:17:48 UTC 2023 - Steve Kowalik diff --git a/support-python-311.patch b/support-python-311.patch index ddd3c0c..99e605c 100644 --- a/support-python-311.patch +++ b/support-python-311.patch @@ -1,14 +1,17 @@ +--- + tests/test_url_parsing.py | 3 +++ + 1 file changed, 3 insertions(+) + Index: yarl-1.8.2/tests/test_url_parsing.py =================================================================== --- yarl-1.8.2.orig/tests/test_url_parsing.py +++ yarl-1.8.2/tests/test_url_parsing.py -@@ -72,6 +72,10 @@ class TestScheme: +@@ -72,6 +72,9 @@ class TestScheme: assert u.query_string == "" assert u.fragment == "" -+ @pytest.mark.skipif( -+ sys.version_info >= (3, 11), -+ reason="Fails with Python 3.11+" ++ @pytest.mark.skip( ++ reason="Fails on Pythons with fixed CVE-2023-24329" + ) def test_not_a_scheme2(self): u = URL("37signals:book")