14
0
forked from pool/python-joblib

Accepting request 832923 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/832923
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-joblib?expand=0&rev=14
This commit is contained in:
2020-09-10 20:46:47 +00:00
committed by Git OBS Bridge
3 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
--- joblib-0.16.0/joblib/test/test_memmapping.py.orig 2020-09-08 08:01:19.285304370 +0000
+++ joblib-0.16.0/joblib/test/test_memmapping.py 2020-09-08 08:05:25.318014706 +0000
@@ -512,6 +512,7 @@ def test_memmapping_temp_folder_thread_s
@with_numpy
@with_multiprocessing
def test_multithreaded_parallel_termination_resource_tracker_silent():
+ raise SkipTest('Skipping this test as it fails often in OBS')
# test that concurrent termination attempts of a same executor does not
# emit any spurious error from the resource_tracker. We test various
# situations making 0, 1 or both parallel call sending a task that will
@@ -681,6 +682,8 @@ def test_memmap_returned_as_regular_arra
@with_multiprocessing
@parametrize("backend", ["multiprocessing", param("loky", marks=xfail)])
def test_resource_tracker_silent_when_reference_cycles(backend):
+ if backend == 'multiprocessing':
+ raise SkipTest('Skipping this test as it fails often in OBS')
# There is a variety of reasons that can make joblib with loky backend
# output noisy warnings when a reference cycle is preventing a memmap from
# being garbage collected. Especially, joblib's main process finalizer
@@ -778,6 +781,8 @@ def test_memmapping_pool_for_large_array
@with_multiprocessing
@parametrize("backend", ["multiprocessing", "loky"])
def test_child_raises_parent_exits_cleanly(backend):
+ if backend == 'multiprocessing':
+ raise SkipTest('Skipping this test as it fails often in OBS')
# When a task executed by a child process raises an error, the parent
# process's backend is notified, and calls abort_everything.
# In loky, abort_everything itself calls shutdown(kill_workers=True) which

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Sep 8 08:26:41 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Disable tests failing often in OBS:
* joblib-disable-unrelialble-tests.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Aug 21 08:40:04 UTC 2020 - Michel Normand <normand@linux.vnet.ibm.com> Fri Aug 21 08:40:04 UTC 2020 - Michel Normand <normand@linux.vnet.ibm.com>

View File

@@ -27,6 +27,8 @@ Group: Development/Languages/Python
URL: https://github.com/joblib/joblib URL: https://github.com/joblib/joblib
Source: https://files.pythonhosted.org/packages/source/j/joblib/joblib-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/j/joblib/joblib-%{version}.tar.gz
Patch1: disable_test_on_big_endian.patch Patch1: disable_test_on_big_endian.patch
# PATCH-FIX-OPENSUSE - Disable tests failing often in OBS
Patch2: joblib-disable-unrelialble-tests.patch
BuildRequires: %{python_module lz4} BuildRequires: %{python_module lz4}
BuildRequires: %{python_module numpy} BuildRequires: %{python_module numpy}
BuildRequires: %{python_module psutil} BuildRequires: %{python_module psutil}
@@ -57,6 +59,9 @@ Joblib can handle large data and has specific optimizations for `numpy` arrays.
%prep %prep
%setup -q -n joblib-%{version} %setup -q -n joblib-%{version}
%patch1 -p1 %patch1 -p1
%ifarch aarch64 %arm ppc64 %{ix86}
%patch2 -p1
%endif
%build %build
%python_build %python_build