File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed
Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 11name : OS/BLAS test matrix
22
3- on : push
3+ on : pull_request
44
55jobs :
66 build-pip :
Original file line number Diff line number Diff line change 1313import scipy as sp
1414import re
1515import warnings
16+ import os
17+ import platform
1618
1719import control as ct
1820import control .flatsys as fs
@@ -201,9 +203,26 @@ def test_kinematic_car_ocp(
201203 minimize_kwargs = {'method' : method },
202204 )
203205 xd , ud = traj_ocp .eval (timepts )
206+
204207 if not traj_ocp .success :
205- # If unsuccessful, make sure the error is just about precision
206- assert re .match (".*precision loss.*" , traj_ocp .message ) is not None
208+ # Known failure cases
209+ if re .match (".*precision loss.*" , traj_ocp .message ):
210+ pytest .xfail ("precision loss in some configurations" )
211+
212+ elif re .match ("Iteration limit.*" , traj_ocp .message ) and \
213+ re .match ("ubuntu-3.* Generic" , os .getenv ('JOBNAME' )) and \
214+ np .__version__ == '1.24.0' :
215+ pytest .xfail ("gh820: iteration limit exceeded" )
216+
217+ else :
218+ # Dump out information to allow creation of an exception
219+ print ("Platform: " , platform .platform ())
220+ print ("Python: " , platform .python_version ())
221+ np .show_config ()
222+ print ("JOBNAME: " , os .getenv ('JOBNAME' ))
223+
224+ pytest .fail (
225+ "unknown failure; view output to identify configuration" )
207226
208227 # Make sure the constraints are satisfied
209228 if input_constraints :
You can’t perform that action at this time.
0 commit comments