From 331f3833376bc372c566a7436fa04f90e29ee1b3 Mon Sep 17 00:00:00 2001 From: Sebastian Parborg Date: Thu, 24 Sep 2020 18:29:39 +0200 Subject: [PATCH] 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. --- tests/python/bl_constraints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')