python-numpy/fix-py34-tests.patch

22 lines
881 B
Diff
Raw Normal View History

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
@@ -4,6 +4,8 @@ import sys
import numpy as np
from numpy.testing import assert_, assert_equal, assert_raises
+import pytest
Accepting request 818513 from home:alarrosa:branches:devel:languages:python:numeric - Update to version 1.19.0: * #8255: ENH: add identity kwarg to frompyfunc * #12646: TST: check exception details in refguide_check.py * #13421: ENH: improve runtime detection of CPU features * #14326: TST: Add assert_array_equal test for big integer arrays. * #14376: MAINT: Remove unnecessary 'from __future__ import ...' statements * #14530: MAINT: Fix typos and copy edit NEP-0030. * #14546: DOC: NumPy for absolute beginners tutorial * #14715: NEP: Proposal for array creation dispatching with __array_function__ * #14867: ENH: Use AVX-512F for np.maximum and np.minimum * #14924: BUG: Fix numpy.random.dirichlet returns NaN for small 'alpha'... * #14933: API: Use ResultType in PyArray_ConvertToCommonType * #14942: MAINT,API: ignore and NULL fasttake/fastputmask ArrFuncs slots * #14981: BUG: Make ediff1d kwarg casting consistent * #14988: DOC: linalg: Include information about scipy.linalg. * #14995: BUG: Use __array__ during dimension discovery * #15011: MAINT: cleanup compat.py3k.py * #15022: ENH: f2py: improve error messages * #15028: [DOC] LaTeX: fix preamble (closes #15026) * #15035: BUG: add endfunction, endsubroutine to valid fortran end words * #15040: TST: Add test for object method (and general unary) loops * #15042: REL: Update master after 1.18.x branch. * #15043: DOC: Update HOWTO_RELEASE.rst.txt * #15046: 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
+import sys
Accepting request 818513 from home:alarrosa:branches:devel:languages:python:numeric - Update to version 1.19.0: * #8255: ENH: add identity kwarg to frompyfunc * #12646: TST: check exception details in refguide_check.py * #13421: ENH: improve runtime detection of CPU features * #14326: TST: Add assert_array_equal test for big integer arrays. * #14376: MAINT: Remove unnecessary 'from __future__ import ...' statements * #14530: MAINT: Fix typos and copy edit NEP-0030. * #14546: DOC: NumPy for absolute beginners tutorial * #14715: NEP: Proposal for array creation dispatching with __array_function__ * #14867: ENH: Use AVX-512F for np.maximum and np.minimum * #14924: BUG: Fix numpy.random.dirichlet returns NaN for small 'alpha'... * #14933: API: Use ResultType in PyArray_ConvertToCommonType * #14942: MAINT,API: ignore and NULL fasttake/fastputmask ArrFuncs slots * #14981: BUG: Make ediff1d kwarg casting consistent * #14988: DOC: linalg: Include information about scipy.linalg. * #14995: BUG: Use __array__ during dimension discovery * #15011: MAINT: cleanup compat.py3k.py * #15022: ENH: f2py: improve error messages * #15028: [DOC] LaTeX: fix preamble (closes #15026) * #15035: BUG: add endfunction, endsubroutine to valid fortran end words * #15040: TST: Add test for object method (and general unary) loops * #15042: REL: Update master after 1.18.x branch. * #15043: DOC: Update HOWTO_RELEASE.rst.txt * #15046: 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
# NOTE: This class should be kept as an exact copy of the example from the
# docstring for NDArrayOperatorsMixin.
@@ -193,6 +195,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)