Skip to content

Commit

Permalink
Fix Matrix3_TEST.py on Windows with conda-forge dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Traversaro <[email protected]>
  • Loading branch information
traversaro authored Sep 30, 2023
1 parent 416e559 commit 8ee32c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/python_pybind11/test/Matrix3_TEST.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ def test_to_quaternion(self):
q = Quaterniond(math.pi/2.0, math.pi/2.0, 0)
matFromQuat = Matrix3d(q)
quatFromMat = Quaterniond(matFromQuat)
self.assertTrue(q == quatFromMat)
# We check both cases as quaternion double-cover the rotation matrix
# space, see https://github.com/gazebosim/gz-math/issues/416#issuecomment-1741741183
self.assertTrue(q == quatFromMat or q == -quatFromMat)

# test the cases where matrix trace is negative
# (requires special handling)
Expand Down

0 comments on commit 8ee32c9

Please sign in to comment.