- 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
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
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')
|