summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorNathaniel J. Smith <njs@pobox.com>2016-01-29 18:59:12 -0800
committerNathaniel J. Smith <njs@pobox.com>2016-01-29 18:59:12 -0800
commita9e8c7f05d63f9aa1fa47d7eff92c4303f41de59 (patch)
tree606516d3e4df09fe0cba3268b2c1064571934892 /numpy/core
parent0bba66540744223b3a10b76ef212780448bef874 (diff)
downloadnumpy-a9e8c7f05d63f9aa1fa47d7eff92c4303f41de59.tar.gz
TST: remove duplicate test
There are two identical copies of test_dot_override in test_multiarray.py. This seems surplus to requirements.
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/tests/test_multiarray.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index f432aa975..5aed34bc8 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -4615,24 +4615,6 @@ class TestDot(TestCase):
assert_equal(np.dot(arr, 3), desired)
assert_equal(np.dot(3, arr), desired)
- def test_dot_override(self):
- class A(object):
- def __numpy_ufunc__(self, ufunc, method, pos, inputs, **kwargs):
- return "A"
-
- class B(object):
- def __numpy_ufunc__(self, ufunc, method, pos, inputs, **kwargs):
- return NotImplemented
-
- a = A()
- b = B()
- c = np.array([[1]])
-
- assert_equal(np.dot(a, b), "A")
- assert_equal(c.dot(a), "A")
- assert_raises(TypeError, np.dot, b, c)
- assert_raises(TypeError, c.dot, b)
-
def test_accelerate_framework_sgemv_fix(self):
def aligned_array(shape, align, dtype, order='C'):