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:
authorSebastian Parborg <darkdefende@gmail.com>2020-09-24 19:29:39 +0300
committerSebastian Parborg <darkdefende@gmail.com>2020-09-24 19:33:36 +0300
commit331f3833376bc372c566a7436fa04f90e29ee1b3 (patch)
tree083600a42243e2f6af42b07b495ed7b4c61c3c78 /tests
parent7fb0cb2b9320a1751779b5906c68a7cffdbcd71e (diff)
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/python/bl_constraints.py2
1 files changed, 1 insertions, 1 deletions
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')