python-numpy/fix-py34-tests.patch

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)