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-03-02 14:42:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-furl (Old)
 and      /work/SRC/openSUSE:Factory/.python-furl.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-furl"

Tue Mar  2 14:42:59 2021 rev:4 rq:874649 version:2.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-furl/python-furl.changes  2020-03-05 
23:24:21.733379547 +0100
+++ /work/SRC/openSUSE:Factory/.python-furl.new.2378/python-furl.changes        
2021-03-02 15:27:41.629865030 +0100
@@ -1,0 +2,7 @@
+Tue Feb 23 16:19:20 UTC 2021 - Matej Cepl <mc...@suse.com>
+
+- Switch testing to pytest, it is just more convenient to debug.
+- Add tests_overcome_bpo42967.patch to overcome changes in Python
+  interpreter after fixing bpo#42967 (gh#gruns/furl#135).
+
+-------------------------------------------------------------------

New:
----
  tests_overcome_bpo42967.patch

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

Other differences:
------------------
++++++ python-furl.spec ++++++
--- /var/tmp/diff_new_pack.XGFqij/_old  2021-03-02 15:27:42.309865473 +0100
+++ /var/tmp/diff_new_pack.XGFqij/_new  2021-03-02 15:27:42.309865473 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-furl
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,10 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/gruns/furl
 Source:         
https://files.pythonhosted.org/packages/source/f/furl/furl-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM tests_overcome_bpo42967.patch gh#gruns/furl#135 
mc...@suse.com
+# With fix for bpo#42967, it is not possible to separate
+# parameters of URL query with semicolon
+Patch0:         tests_overcome_bpo42967.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -34,6 +38,7 @@
 # SECTION test requirements
 BuildRequires:  %{python_module flake8}
 BuildRequires:  %{python_module orderedmultidict >= 1.0}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module six >= 1.8.0}
 # /SECTION
 %python_subpackages
@@ -42,8 +47,9 @@
 furl is a Python library for parsing and manipulating URLs.
 
 %prep
-%setup -q -n furl-%{version}
-chmod -x README.md
+%autosetup -p1 -n furl-%{version}
+
+chmod -x *.md
 
 %build
 %python_build
@@ -53,7 +59,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_exec setup.py test
+%pytest -vv
 
 %files %{python_files}
 %doc README.md

++++++ tests_overcome_bpo42967.patch ++++++
--- a/tests/test_furl.py
+++ b/tests/test_furl.py
@@ -602,17 +602,17 @@ class TestQuery(unittest.TestCase):
             'space=a+a&amp=a%26a', 'a a=a a&no encoding=sup', 'a+a=a+a',
             'a%20=a+a', 'a%20a=a%20a', 'a+a=a%20a', 'space=a a&amp=a^a',
             'a=a&s=s#s', '+=+', "/?:@-._~!$&'()*+,=/?:@-._~!$'()*+,=",
-            'a=a&c=c%5Ec', '<=>&^="', '%3C=%3E&%5E=%22', '%=%;`=`',
+            'a=a&c=c%5Ec', '<=>&^="', '%3C=%3E&%5E=%22', '%=%&`=`',
             '%25=%25&%60=%60',
             # Only keys, no values.
             'asdfasdf', '/asdf/asdf/sdf', '*******', '!@#(*&@!#(*@!#', 'a&b',
-            'a;b',
+            'a&b',
             # Repeated parameters.
             'a=a&a=a', 'space=a+a&space=b+b',
             # Empty keys and/or values.
             '=', 'a=', 'a=a&a=', '=a&=b',
-            # Semicolon delimiter, like 'a=a;b=b'.
-            'a=a;a=a', 'space=a+a;space=b+b',
+            # Semicolon delimiter is not allowed per default after bpo#42967
+            'a=a&a=a', 'space=a+a&space=b+b',
         ]))
         self.items = (self.itemlists + self.itemdicts + self.itemomdicts +
                       self.itemstrs)

Reply via email to