Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-furl for openSUSE:Factory 
checked in at 2021-04-15 16:56:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-furl (Old)
 and      /work/SRC/openSUSE:Factory/.python-furl.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-furl"

Thu Apr 15 16:56:39 2021 rev:5 rq:882150 version:2.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-furl/python-furl.changes  2021-03-02 
15:27:41.629865030 +0100
+++ /work/SRC/openSUSE:Factory/.python-furl.new.12324/python-furl.changes       
2021-04-15 16:56:45.254611348 +0200
@@ -1,0 +2,7 @@
+Mon Mar 29 22:10:03 UTC 2021 - Ben Greiner <c...@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
+
+-------------------------------------------------------------------

New:
----
  furl-py39-join.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-furl.spec ++++++
--- /var/tmp/diff_new_pack.HIHynq/_old  2021-04-15 16:56:45.698612051 +0200
+++ /var/tmp/diff_new_pack.HIHynq/_new  2021-04-15 16:56:45.702612057 +0200
@@ -29,6 +29,8 @@
 # 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 @@
 
 %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

++++++ furl-py39-join.patch ++++++
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')

Reply via email to