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
path: root/tests
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2022-05-16 14:02:54 +0300
committerSybren A. Stüvel <sybren@blender.org>2022-05-16 14:03:06 +0300
commit8c24e293381fe19618f7dcc3d4aea00cba74e682 (patch)
tree7fb6efcbcb33244ef3b72c544512056b097a5305 /tests
parent2397287a51bf45f22b2008d17e8e89c2269d870a (diff)
Fix broken unit test `bl_rigging_symmetrize`
Fix parameters used in `self.assertAlmostEqual()` call; the code was passing the error message to the `places` parameter.
Diffstat (limited to 'tests')
-rw-r--r--tests/python/bl_rigging_symmetrize.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/python/bl_rigging_symmetrize.py b/tests/python/bl_rigging_symmetrize.py
index 3a5a0777d6c..cac5e9b0856 100644
--- a/tests/python/bl_rigging_symmetrize.py
+++ b/tests/python/bl_rigging_symmetrize.py
@@ -134,9 +134,8 @@ def check_constraints(self, input_arm, expected_arm, bone, exp_bone):
"Missmatching constraint boolean in pose.bones[%s].constraints[%s].%s" % (
bone.name, const_name, var))
else:
- self.assertAlmostEqual(value, exp_value,
- "Missmatching constraint value in pose.bones[%s].constraints[%s].%s" % (
- bone.name, const_name, var))
+ msg = "Missmatching constraint value in pose.bones[%s].constraints[%s].%s" % (bone.name, const_name, var)
+ self.assertAlmostEqual(value, exp_value, places=6, msg=msg)
class AbstractAnimationTest: