Accepting request 1056959 from devel:languages:python
- Add patch support-python-311.patch: * Skip a test under Python 3.11. OBS-URL: https://build.opensuse.org/request/show/1056959 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-yarl?expand=0&rev=21
This commit is contained in:
commit
13cc52efff
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 9 04:17:48 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch support-python-311.patch:
|
||||||
|
* Skip a test under Python 3.11.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 7 22:47:59 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
Wed Dec 7 22:47:59 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-yarl
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -21,9 +21,10 @@ Version: 1.8.2
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Yet another URL library
|
Summary: Yet another URL library
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/aio-libs/yarl/
|
URL: https://github.com/aio-libs/yarl/
|
||||||
Source: https://files.pythonhosted.org/packages/source/y/yarl/yarl-%{version}.tar.gz
|
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 Cython}
|
||||||
BuildRequires: %{python_module devel >= 3.7}
|
BuildRequires: %{python_module devel >= 3.7}
|
||||||
BuildRequires: %{python_module idna >= 2.0}
|
BuildRequires: %{python_module idna >= 2.0}
|
||||||
|
15
support-python-311.patch
Normal file
15
support-python-311.patch
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user