forked from pool/python-furl
Accepting request 882075 from home:bnavigator:branches:devel:languages:python
- Add furl-py39-join.patch to fix Python 3.9 test failure gh#gruns/furl#139 - Submitted tests_overcome_bpo42967.patch as gh#gruns/furl#140 OBS-URL: https://build.opensuse.org/request/show/882075 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-furl?expand=0&rev=10
This commit is contained in:
parent
61de100a64
commit
68085651c7
28
furl-py39-join.patch
Normal file
28
furl-py39-join.patch
Normal file
@ -0,0 +1,28 @@
|
||||
Index: furl-2.1.0/tests/test_furl.py
|
||||
===================================================================
|
||||
--- furl-2.1.0.orig/tests/test_furl.py
|
||||
+++ furl-2.1.0/tests/test_furl.py
|
||||
@@ -14,6 +14,7 @@ from __future__ import division
|
||||
|
||||
import warnings
|
||||
from abc import ABCMeta, abstractmethod
|
||||
+import sys
|
||||
|
||||
import six
|
||||
from six.moves import zip
|
||||
@@ -2037,9 +2038,13 @@ class TestFurl(unittest.TestCase):
|
||||
assert f.url == 'http://pepp.ru/a/b/c#uwantpump?'
|
||||
|
||||
# In edge cases (e.g. URLs without an authority/netloc), behave
|
||||
- # identically to urllib.parse.urljoin().
|
||||
+ # identically to urllib.parse.urljoin(), which changed behavior
|
||||
+ # in Python 3.9
|
||||
f = furl.furl('wss://slrp.com/').join('foo:1')
|
||||
- assert f.url == 'wss://slrp.com/foo:1'
|
||||
+ if sys.version_info[:2] < (3, 9):
|
||||
+ assert f.url == 'wss://slrp.com/foo:1'
|
||||
+ else:
|
||||
+ assert f.url == 'foo:1'
|
||||
f = furl.furl('wss://slrp.com/').join('foo:1:rip')
|
||||
assert f.url == 'foo:1:rip'
|
||||
f = furl.furl('scheme:path').join('foo:blah')
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 29 22:10:03 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Add furl-py39-join.patch to fix Python 3.9 test failure
|
||||
gh#gruns/furl#139
|
||||
- Submitted tests_overcome_bpo42967.patch as gh#gruns/furl#140
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 23 16:19:20 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@ -29,6 +29,8 @@ Source: https://files.pythonhosted.org/packages/source/f/furl/furl-%{ver
|
||||
# With fix for bpo#42967, it is not possible to separate
|
||||
# parameters of URL query with semicolon
|
||||
Patch0: tests_overcome_bpo42967.patch
|
||||
# PATCH-FIX-UPSTREAM furl-py39-join.patch -- gh#gruns/furl#139
|
||||
Patch1: furl-py39-join.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@ -56,14 +58,18 @@ chmod -x *.md
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%{python_expand #
|
||||
chmod -x %{buildroot}%{$python_sitelib}/furl-%{version}*-info/*
|
||||
%fdupes %{buildroot}%{$python_sitelib}
|
||||
}
|
||||
|
||||
%check
|
||||
%pytest -vv
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE.md
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/furl
|
||||
%{python_sitelib}/furl-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user