14
0
forked from pool/python-yarl

- Add patch support-python-311.patch:

* Skip a test under Python 3.11.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=42
This commit is contained in:
2023-01-09 04:18:40 +00:00
committed by Git OBS Bridge
parent 69aee45d5b
commit 660d2d72dd
3 changed files with 24 additions and 2 deletions

15
support-python-311.patch Normal file
View 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"