Changeset 5727


Ignore:
Timestamp:
04/27/12 15:37:54 (2 years ago)
Author:
jwatson
Message:

Adding delta argument to a failing test - comparison matched within 7 significant digits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/tests/io/test_writers.py

    r5724 r5727  
    6969        for i, val in self.instancelp.active_components(Var).iteritems(): 
    7070            self.assertAlmostEqual( val(), 
    71                               self.instancepy.active_components(Var)[i]() ) 
     71                              self.instancepy.active_components(Var)[i](), delta=1e-3 ) 
    7272 
    7373    @unittest.skipIf(not (gurobi_available and gurobi_ampl_available),"The 'gurobi executable is not available")  
Note: See TracChangeset for help on using the changeset viewer.