avoid numpy 1.14.0 in tests
@@ -56,6 +56,7 @@ def augument_einsum_testcases(*params):
yield param_new
+@testing.with_requires('numpy!=1.14.0')
class TestEinSumError(unittest.TestCase):
@testing.numpy_cupy_raises()
@@ -194,6 +195,7 @@ class TestEinSumError(unittest.TestCase):
xp.einsum('i-', xp.array([0, 0]))
+@testing.with_requires('numpy!=1.14.0')
class TestListArgEinSumError(unittest.TestCase):
@testing.numpy_cupy_raises()
@@ -266,6 +268,7 @@ class TestListArgEinSumError(unittest.TestCase):
{'shape_a': (), 'subscripts': ''}, # do nothing
{'shape_a': (), 'subscripts': '->'}, # do nothing
))
+@testing.with_requires('numpy!=1.14.0')
class TestEinSumUnaryOperation(unittest.TestCase):
@testing.for_all_dtypes()
@@ -363,6 +366,7 @@ class TestEinSumUnaryOperationWithScalar(unittest.TestCase):
{'shape_a': (1, 1, 1, 2, 3, 2), 'shape_b': (2, 3, 2, 2),
'subscripts': '...lmn,lmno->...o'},
))
+@testing.with_requires('numpy!=1.14.0')
class TestEinSumBinaryOperation(unittest.TestCase):
@testing.for_all_dtypes_combination(
['dtype_a', 'dtype_b'],
@@ -408,6 +412,7 @@ class TestEinSumBinaryOperationWithScalar(unittest.TestCase):
{'shape_a': (3, 3, 4), 'shape_b': (3, 4), 'shape_c': (2, 3, 4),
'subscripts': 'a...,...,c...->ac...'},
))
+@testing.with_requires('numpy!=1.14.0')
class TestEinSumTernaryOperation(unittest.TestCase):
@testing.for_all_dtypes_combination(
['dtype_a', 'dtype_b', 'dtype_c'],
@@ -454,7 +459,7 @@ class TestEinSumTernaryOperation(unittest.TestCase):
'a,ac,ab,ad,cd,bd,bc->',
], 'opt': ['greedy', 'optimal'],
})))
-@testing.with_requires('numpy>=1.12')
+@testing.with_requires('numpy>=1.12,!=1.14.0')
class TestEinSumLarge(unittest.TestCase):
def setUp(self):
