Hello community, here is the log from the commit of package python-futures for openSUSE:Factory checked in at 2019-10-10 12:21:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-futures (Old) and /work/SRC/openSUSE:Factory/.python-futures.new.2352 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-futures" Thu Oct 10 12:21:42 2019 rev:18 rq:735963 version:3.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-futures/python-futures.changes 2019-08-05 10:29:09.631453781 +0200 +++ /work/SRC/openSUSE:Factory/.python-futures.new.2352/python-futures.changes 2019-10-10 12:21:43.698964968 +0200 @@ -1,0 +2,6 @@ +Mon Oct 7 23:59:09 CEST 2019 - Matej Cepl <[email protected]> + +- Add test_idle_thread_reuse_failure.patch to fix test failures + on slow machines. gh#agronholm/pythonfutures#92 + +------------------------------------------------------------------- New: ---- test_idle_thread_reuse_failure.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-futures.spec ++++++ --- /var/tmp/diff_new_pack.7fvnEh/_old 2019-10-10 12:21:44.330963434 +0200 +++ /var/tmp/diff_new_pack.7fvnEh/_new 2019-10-10 12:21:44.330963434 +0200 @@ -23,19 +23,19 @@ Release: 0 Summary: Backport of the concurrent.futures package from Python 3.2 License: Python-2.0 -Group: Development/Languages/Python -Url: https://github.com/agronholm/pythonfutures +URL: https://github.com/agronholm/pythonfutures Source: https://files.pythonhosted.org/packages/source/f/futures/futures-%{version}.tar.gz +Patch0: test_idle_thread_reuse_failure.patch BuildRequires: %{python_module setuptools} # This packages contain module test from stdlib, nothing to with # BuildArch field BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: python2-devel +BuildArch: noarch %if 0%{?rhel} || 0%{?fedora} BuildRequires: python-test %endif -BuildRequires: python2-devel -BuildArch: noarch %python_subpackages %description @@ -47,6 +47,7 @@ %prep %setup -q -n futures-%{version} +%autopatch -p1 %build %python_build ++++++ test_idle_thread_reuse_failure.patch ++++++ >From bd3a5d8133e4668b4ee49d81fb6b2e20a168a376 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" <[email protected]> Date: Wed, 18 Sep 2019 17:01:09 +0200 Subject: [PATCH] Make test_idle_thread_reuse more reliable depending on machine load or other unknown influences on the Linux scheduler, this would often fail with File "test_futures.py", line 558, in test_idle_thread_reuse self.assertEqual(len(executor._threads), 1) AssertionError: 2 != 1 --- test_futures.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_futures.py b/test_futures.py index f51786d..089fb92 100644 --- a/test_futures.py +++ b/test_futures.py @@ -553,7 +553,9 @@ def acquire_lock(lock): def test_idle_thread_reuse(self): executor = self.executor_type() executor.submit(mul, 21, 2).result() + time.sleep(0.001) executor.submit(mul, 6, 7).result() + time.sleep(0.001) executor.submit(mul, 3, 14).result() self.assertEqual(len(executor._threads), 1) executor.shutdown(wait=True)
