[packages/python-more_itertools] - updated to 4.3.0 - added tests patch (fix tests on 32-bit python)

qboosh qboosh at pld-linux.org
Sat Nov 24 22:48:47 CET 2018


commit 47b2b1a2fb7ffd5706165727b45e5d153f939675
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Nov 24 22:53:02 2018 +0100

    - updated to 4.3.0
    - added tests patch (fix tests on 32-bit python)

 python-more_itertools-tests.patch | 14 ++++++++++++++
 python-more_itertools.spec        |  6 ++++--
 2 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/python-more_itertools.spec b/python-more_itertools.spec
index 4258066..2881d03 100644
--- a/python-more_itertools.spec
+++ b/python-more_itertools.spec
@@ -8,13 +8,14 @@
 Summary:	More routines for operating on iterables, beyond itertools
 Summary(pl.UTF-8):	Uzupełniające itertools dodatkowe funkcje do operowania na zmiennych iterowalnych
 Name:		python-more_itertools
-Version:	4.2.0
+Version:	4.3.0
 Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/more_itertools/
 Source0:	https://files.pythonhosted.org/packages/source/m/more_itertools/more-itertools-%{version}.tar.gz
-# Source0-md5:	5629c955d17df328ec534989f0649369
+# Source0-md5:	42157ef9b677bdf6d3609ed6eadcbd4a
+Patch0:		%{name}-tests.patch
 URL:		https://github.com/erikrose/more-itertools
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
@@ -83,6 +84,7 @@ Dokumentacja API modułu Pythona more-itertools.
 
 %prep
 %setup -q -n more-itertools-%{version}
+%patch0 -p1
 
 %build
 %if %{with python2}
diff --git a/python-more_itertools-tests.patch b/python-more_itertools-tests.patch
new file mode 100644
index 0000000..b3b5290
--- /dev/null
+++ b/python-more_itertools-tests.patch
@@ -0,0 +1,14 @@
+10**10 is too large for 32-bit python
+--- more-itertools-4.3.0/more_itertools/tests/test_more.py.orig	2018-07-15 03:49:34.000000000 +0200
++++ more-itertools-4.3.0/more_itertools/tests/test_more.py	2018-11-24 22:51:05.704438058 +0100
+@@ -1977,8 +1977,8 @@
+             self.assertEqual(actual, expected)
+ 
+     def test_efficient_reversal(self):
+-        iterable = range(10 ** 10)  # Is efficiently reversible
+-        target = 10 ** 10 - 2
++        iterable = range(10 ** 9)  # Is efficiently reversible
++        target = 10 ** 9 - 2
+         pred = lambda x: x == target  # Find-able from the right
+         actual = next(mi.rlocate(iterable, pred))
+         self.assertEqual(actual, target)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-more_itertools.git/commitdiff/47b2b1a2fb7ffd5706165727b45e5d153f939675



More information about the pld-cvs-commit mailing list