Changeset 3270


Ignore:
Timestamp:
Dec 1, 2010 5:29:41 PM (10 years ago)
Author:
wehart
Message:

Adding filter for the 'Message:' line.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.plugins/trunk/coopr/plugins/tests/mip/test_asl.py

    r2429 r3270  
    3434    pico_convert_available=False
    3535
     36
     37def filter_cplex(line):
     38    return line.startswith("Message:")
    3639
    3740class mock_all(unittest.TestCase):
     
    98101            results = self.asl.solve(currdir+"test4.nl", logfile=currdir+"test_solve4.log")
    99102            results.write(filename=currdir+"test_solve4.txt",times=False)
    100             self.failUnlessFileEqualsBaseline(currdir+"test_solve4.txt", currdir+"test4_asl.txt")
     103            self.failUnlessFileEqualsBaseline(currdir+"test_solve4.txt", currdir+"test4_asl.txt", filter=filter_cplex)
    101104        else:
    102105            try:
Note: See TracChangeset for help on using the changeset viewer.