[Bf-blender-cvs] [331f3833376] master: Fix blender constraints automated tests when using march=native

Sebastian Parborg noreply at git.blender.org
Thu Sep 24 18:33:40 CEST 2020


Commit: 331f3833376bc372c566a7436fa04f90e29ee1b3
Author: Sebastian Parborg
Date:   Thu Sep 24 18:29:39 2020 +0200
Branches: master
https://developer.blender.org/rB331f3833376bc372c566a7436fa04f90e29ee1b3

Fix blender constraints automated tests when using march=native

More agressive optimization made the results differ a bit more than the
current error margin would allow. Bump the error margin to be 1e-6
instead of the previous 0.5e-7.

===================================================================

M	tests/python/bl_constraints.py

===================================================================

diff --git a/tests/python/bl_constraints.py b/tests/python/bl_constraints.py
index 323dd874ac0..09c76bca6bd 100644
--- a/tests/python/bl_constraints.py
+++ b/tests/python/bl_constraints.py
@@ -44,7 +44,7 @@ class AbstractConstraintTests(unittest.TestCase):
             collection = top_collection.children[self.layer_collection]
             collection.exclude = False
 
-    def assert_matrix(self, actual_matrix, expect_matrix, object_name: str, places=6, delta=None):
+    def assert_matrix(self, actual_matrix, expect_matrix, object_name: str, places=None, delta=1e-6):
         """Asserts that the matrices almost equal."""
         self.assertEqual(len(actual_matrix), 4, 'Expected a 4x4 matrix')



More information about the Bf-blender-cvs mailing list