@@ -2605,7 +2605,6 @@ def test_diagonal_memleak(self):
2605
2605
if HAS_REFCOUNT :
2606
2606
assert_ (sys .getrefcount (a ) < 50 )
2607
2607
2608
- @pytest .mark .xfail (reason = "TODO: implement np.dot" )
2609
2608
def test_size_zero_memleak (self ):
2610
2609
# Regression test for issue 9615
2611
2610
# Exercises a special-case code path for dot products of length
@@ -6071,11 +6070,11 @@ def test_matmul_bool(self):
6071
6070
assert not np .any (c )
6072
6071
6073
6072
6074
- @pytest .mark .xfail (reason = 'TODO: @' )
6075
6073
class TestMatmulOperator (MatmulCommon ):
6076
6074
import operator
6077
6075
matmul = operator .matmul
6078
6076
6077
+ @pytest .mark .skip (reason = "no __array_priority__" )
6079
6078
def test_array_priority_override (self ):
6080
6079
6081
6080
class A :
@@ -6093,11 +6092,10 @@ def __rmatmul__(self, other):
6093
6092
assert_equal (self .matmul (b , a ), "A" )
6094
6093
6095
6094
def test_matmul_raises (self ):
6096
- assert_raises (TypeError , self .matmul , np .int8 (5 ), np .int8 (5 ))
6097
- assert_raises (TypeError , self .matmul , np .void (b'abc' ), np .void (b'abc' ))
6098
- assert_raises (TypeError , self .matmul , np .arange (10 ), np .void (b'abc' ))
6095
+ assert_raises ((RuntimeError , TypeError ), self .matmul , np .int8 (5 ), np .int8 (5 ))
6099
6096
6100
- @pytest .mark .xfail (reason = 'TODO @' )
6097
+
6098
+ @pytest .mark .xfail (reason = "torch supports inplace matmul, and so do we" )
6101
6099
def test_matmul_inplace ():
6102
6100
# It would be nice to support in-place matmul eventually, but for now
6103
6101
# we don't have a working implementation, so better just to error out
0 commit comments