File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
pyomo/contrib/solver/tests/solvers Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1212import stat
1313import subprocess
1414import sys
15- import time
16- import threading
1715from contextlib import contextmanager
1816
1917import pyomo .environ as pyo
20- from pyomo .common .envvar import is_windows
2118from pyomo .common .fileutils import ExecutableData
2219from pyomo .common .config import ConfigDict , ADVANCED_OPTION
2320from pyomo .common .errors import ApplicationError , MouseTrap
@@ -1977,7 +1974,7 @@ def test_ipopt_timer_object(self):
19771974 ipopt_instance = ipopt .Ipopt ()
19781975 results = ipopt_instance .solve (model )
19791976 timing_info = results .timing_info
1980- if ipopt_instance .version ()[0 : 1 ] <= (3 , 13 ):
1977+ if ipopt_instance .version ()[: 2 ] <= (3 , 13 ):
19811978 # We are running an older version of IPOPT (<= 3.13)
19821979 self .assertIn ('IPOPT (w/o function evaluations)' , timing_info .keys ())
19831980 self .assertIn ('NLP function evaluations' , timing_info .keys ())
You can’t perform that action at this time.
0 commit comments