From b81bfd86b445789507b61b22abcad8a2ad150d2e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 11 Feb 2012 14:27:36 +0000 Subject: use ValueError when vector/matrix multiplications sizes are not supported, was using TypeError for mat*vec and ValueError for vec*mat. --- source/tests/bl_pyapi_mathutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/tests') diff --git a/source/tests/bl_pyapi_mathutils.py b/source/tests/bl_pyapi_mathutils.py index b2e9f27d9ec..a37f74463ee 100644 --- a/source/tests/bl_pyapi_mathutils.py +++ b/source/tests/bl_pyapi_mathutils.py @@ -111,8 +111,8 @@ class MatrixTesting(unittest.TestCase): vec = Vector((1, 2)) - self.assertRaises(TypeError, mat1.__mul__, vec) - self.assertRaises(ValueError, vec.__mul__, mat1) # Why are these different?! + self.assertRaises(ValueError, mat1.__mul__, vec) + self.assertRaises(ValueError, vec.__mul__, mat1) mat2 = Matrix(((1, 2), (-2, 3))) -- cgit v1.2.3