Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-02-11 18:27:36 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-11 18:27:36 +0400
commitb81bfd86b445789507b61b22abcad8a2ad150d2e (patch)
treef5fb24e0a45ed4e39fd2c0d9b5828dde15b3c6d3 /source/tests
parent5e1f6f01740714fd51df4b4d249b0590261ebd8c (diff)
use ValueError when vector/matrix multiplications sizes are not supported, was using TypeError for mat*vec and ValueError for vec*mat.
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/bl_pyapi_mathutils.py4
1 files changed, 2 insertions, 2 deletions
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)))