Skip to content

Commit

Permalink
Fix fallback warning test
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Jun 6, 2017
1 parent d0dc933 commit 9621db3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_orbit.py
Original file line number Diff line number Diff line change
Expand Up @@ -3133,7 +3133,8 @@ def test_orbitint_pythonfallback():
raisedWarning= False
for rec in record:
# check that the message matches
raisedWarning+= (str(rec.message.args[0]) == "Cannot use C integration because some of the potentials are not implemented in C")
print(rec.message.args[0])
raisedWarning+= (str(rec.message.args[0]) == "Cannot use C integration because some of the potentials are not implemented in C (using odeint instead)")
assert raisedWarning, "Orbit integration did not raise fallback warning"
return None

Expand Down

0 comments on commit 9621db3

Please sign in to comment.