summaryrefslogtreecommitdiff
path: root/numpy/matrixlib/tests/test_numeric.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/matrixlib/tests/test_numeric.py')
-rw-r--r--numpy/matrixlib/tests/test_numeric.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/matrixlib/tests/test_numeric.py b/numpy/matrixlib/tests/test_numeric.py
new file mode 100644
index 000000000..0b96bb05a
--- /dev/null
+++ b/numpy/matrixlib/tests/test_numeric.py
@@ -0,0 +1,8 @@
+from numpy.testing import assert_equal, TestCase
+from numpy.core import ones
+from numpy import matrix
+
+class TestDot(TestCase):
+ def test_matscalar(self):
+ b1 = matrix(ones((3,3),dtype=complex))
+ assert_equal(b1*1.0, b1)