Skip to content

Commit

Permalink
Update test_mechanics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adtzlr committed Dec 18, 2024
1 parent 15ccae9 commit e0b8fce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_mechanics.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,10 @@ def test_solidbody_mixed():
A2 = b.evaluate.hessian()
A2 = b.evaluate.hessian(u)
for a1, a2 in zip(A1, A2):
assert np.allclose(a1, a2)
if a1 is None:
assert a2 is None
else:
assert np.allclose(a1, a2)

F1 = b.results.kinematics
F2 = b._extract(u)
Expand Down

0 comments on commit e0b8fce

Please sign in to comment.