14
0
forked from pool/python-joblib

Accepting request 828435 from home:michel_mno:branches:devel:languages:python

- New disable_test_on_big_endian.patch as per upstream issue
  https://github.com/joblib/joblib/issues/279

OBS-URL: https://build.opensuse.org/request/show/828435
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-joblib?expand=0&rev=36
This commit is contained in:
Tomáš Chvátal
2020-08-21 09:32:36 +00:00
committed by Git OBS Bridge
parent b4fe9d1935
commit 2a91f6aacd
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
From: Michel Normand <normand@linux.vnet.ibm.com>
Subject: disable test on big endian
Date: Fri, 21 Aug 2020 10:35:13 +0200
disable test on big endian
because still open
https://github.com/joblib/joblib/issues/279
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
---
joblib/test/test_numpy_pickle.py | 7 +++++++
1 file changed, 7 insertions(+)
Index: joblib-0.16.0/joblib/test/test_numpy_pickle.py
===================================================================
--- joblib-0.16.0.orig/joblib/test/test_numpy_pickle.py
+++ joblib-0.16.0/joblib/test/test_numpy_pickle.py
@@ -2,6 +2,7 @@
import copy
import os
+import sys
import random
import re
import io
@@ -426,6 +427,12 @@ def _check_pickle(filename, expected_lis
@with_numpy
def test_joblib_pickle_across_python_versions():
+ # temporarily disable this test on non little-endian machines
+ # because next endianness lines not sufficient.
+ # https://github.com/joblib/joblib/issues/279 still open.
+ if sys.byteorder != 'little':
+ raise SkipTest('Skipping this test on non little-endian machines')
+
# We need to be specific about dtypes in particular endianness
# because the pickles can be generated on one architecture and
# the tests run on another one. See