8000 TST: remove duplicate test · numpy/numpy@a9e8c7f · GitHub
[go: up one dir, main page]

Skip to content

Commit a9e8c7f

Browse files
committed
TST: remove duplicate test
There are two identical copies of test_dot_override in test_multiarray.py. This seems surplus to requirements.
1 parent 0bba665 commit a9e8c7f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

numpy/core/tests/test_multiarray.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4615,24 +4615,6 @@ def test_dot_scalar_and_matrix_of_objects(self):
46154615
assert_equal(np.dot(arr, 3), desired)
46164616
assert_equal(np.dot(3, arr), desired)
46174617

4618-
def test_dot_override(self):
4619-
class A(object):
4620-
def __numpy_ufunc__(self, ufunc, method, pos, inputs, **kwargs):
4621-
return "A"
4622-
4623-
class B(object):
4624-
def __numpy_ufunc__(self, ufunc, method, pos, inputs, **kwargs):
4625-
return NotImplemented
4626-
4627-
a = A()
4628-
b = B()
4629-
c = np.array([[1]])
4630-
4631-
assert_equal(np.dot(a, b), "A")
4632-
assert_equal(c.dot(a), "A")
4633-
assert_raises(TypeError, np.dot, b, c)
4634-
assert_raises(TypeError, c.dot, b)
4635-
46364618
def test_accelerate_framework_sgemv_fix(self):
46374619

46384620
def aligned_array(shape, align, dtype, order='C'):

0 commit comments

Comments
 (0)
0