python-yarl/support-python-311.patch
Matej Cepl 3310d0f37d - 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
2023-03-02 10:47:31 +00:00

19 lines
585 B
Diff

---
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,9 @@ class TestScheme:
assert u.query_string == ""
assert u.fragment == ""
+ @pytest.mark.skip(
+ reason="Fails on Pythons with fixed CVE-2023-24329"
+ )
def test_not_a_scheme2(self):
u = URL("37signals:book")
assert u.scheme == "37signals"