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.
This commit is contained in:
Sebastian Parborg 2020-09-24 18:29:39 +02:00
parent 7fb0cb2b93
commit 331f383337
1 changed files with 1 additions and 1 deletions

View File

@ -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')