SHA256
1
0
forked from pool/python-numpy
python-numpy/fix-py34-tests.patch
Tomáš Chvátal 9e0ee404c8 Accepting request 818513 from home:alarrosa:branches:devel:languages:python:numeric
- Update to version 1.19.0:
  * : ENH: add identity kwarg to frompyfunc
  * : TST: check exception details in refguide_check.py
  * : ENH: improve runtime detection of CPU features
  * : TST: Add assert_array_equal test for big integer arrays.
  * : MAINT: Remove unnecessary 'from __future__ import ...'
    statements
  * : MAINT: Fix typos and copy edit NEP-0030.
  * : DOC: NumPy for absolute beginners tutorial
  * : NEP: Proposal for array creation dispatching with
    __array_function__
  * : ENH: Use AVX-512F for np.maximum and np.minimum
  * : BUG: Fix numpy.random.dirichlet returns NaN for small
    'alpha'...
  * : API: Use ResultType in PyArray_ConvertToCommonType
  * : MAINT,API: ignore and NULL fasttake/fastputmask ArrFuncs
    slots
  * : BUG: Make ediff1d kwarg casting consistent
  * : DOC: linalg: Include information about scipy.linalg.
  * : BUG: Use __array__ during dimension discovery
  * : MAINT: cleanup compat.py3k.py
  * : ENH: f2py: improve error messages
  * : [DOC] LaTeX: fix preamble (closes )
  * : BUG: add endfunction, endsubroutine to valid fortran
    end words
  * : TST: Add test for object method (and general unary)
    loops
  * : REL: Update master after 1.18.x branch.
  * : DOC: Update HOWTO_RELEASE.rst.txt
  * : API, DOC: change names to multivariate_hypergeometric,

OBS-URL: https://build.opensuse.org/request/show/818513
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=68
2020-07-08 06:57:07 +00:00

22 lines
881 B
Diff

Index: numpy-1.16.2/numpy/lib/tests/test_mixins.py
===================================================================
--- numpy-1.16.2.orig/numpy/lib/tests/test_mixins.py
+++ numpy-1.16.2/numpy/lib/tests/test_mixins.py
@@ -7,6 +7,8 @@ import sys
import numpy as np
from numpy.testing import assert_, assert_equal, assert_raises
+import pytest
+import sys
# NOTE: This class should be kept as an exact copy of the example from the
# docstring for NDArrayOperatorsMixin.
@@ -199,6 +201,7 @@ class TestNDArrayOperatorsMixin(object):
err_msg = 'failed for operator {}'.format(op)
_assert_equal_type_and_value(expected, actual, err_msg=err_msg)
+ @pytest.mark.skipif(sys.version_info < (3, 5), reason="requires python >= 3.5")
def test_matmul(self):
array = np.array([1, 2], dtype=np.float64)
array_like = ArrayLike(array)