diff --git a/python-yarl.changes b/python-yarl.changes index 194e06d..1661bd5 100644 --- a/python-yarl.changes +++ b/python-yarl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 9 04:17:48 UTC 2023 - Steve Kowalik + +- Add patch support-python-311.patch: + * Skip a test under Python 3.11. + ------------------------------------------------------------------- Wed Dec 7 22:47:59 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-yarl.spec b/python-yarl.spec index 59174c5..81f8990 100644 --- a/python-yarl.spec +++ b/python-yarl.spec @@ -1,7 +1,7 @@ # # spec file for package python-yarl # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,9 +21,10 @@ Version: 1.8.2 Release: 0 Summary: Yet another URL library License: Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/aio-libs/yarl/ Source: https://files.pythonhosted.org/packages/source/y/yarl/yarl-%{version}.tar.gz +# PATCH-FIX-OPENSUSE Workaround until gh#aio-libs/yarl#803 is fixed +Patch0: support-python-311.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module idna >= 2.0} diff --git a/support-python-311.patch b/support-python-311.patch new file mode 100644 index 0000000..ddd3c0c --- /dev/null +++ b/support-python-311.patch @@ -0,0 +1,15 @@ +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: + assert u.query_string == "" + assert u.fragment == "" + ++ @pytest.mark.skipif( ++ sys.version_info >= (3, 11), ++ reason="Fails with Python 3.11+" ++ ) + def test_not_a_scheme2(self): + u = URL("37signals:book") + assert u.scheme == "37signals"