4ed8230673
- add fix-py34-tests.patch to fix build with python3.4 from SLE12SP4 OBS-URL: https://build.opensuse.org/request/show/688181 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=21
21 lines
789 B
Diff
21 lines
789 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,7 @@ import sys
|
|
import numpy as np
|
|
from numpy.testing import assert_, assert_equal, assert_raises
|
|
|
|
+import pytest
|
|
|
|
PY2 = sys.version_info.major < 3
|
|
|
|
@@ -199,6 +200,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)
|