2019-03-25 10:31:44 +00:00
|
|
|
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
|
2020-07-08 06:57:07 +00:00
|
|
|
@@ -7,6 +7,8 @@ import sys
|
2019-03-25 10:31:44 +00:00
|
|
|
import numpy as np
|
|
|
|
from numpy.testing import assert_, assert_equal, assert_raises
|
|
|
|
|
|
|
|
+import pytest
|
2020-07-08 06:57:07 +00:00
|
|
|
+import sys
|
2019-03-25 10:31:44 +00:00
|
|
|
|
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.
|
|
|
|
@@ -199,6 +201,7 @@ class TestNDArrayOperatorsMixin(object):
|
2019-03-25 10:31:44 +00:00
|
|
|
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)
|