Changeset 9507


Ignore:
Timestamp:
Dec 20, 2014 4:12:47 PM (4 years ago)
Author:
gahacke
Message:

avoid invalid comparison with NoneType? in python 3

File:
1 edited

Legend:

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

    r9271 r9507  
    9191    # If this situation is an expected failure then return the message why
    9292    for case in ExpectedFailures:
    93         if (case[0] == test_case.name) and (case[1] == test_case.io) and (test_case.solver.version() <= case[2]) and (case[3] is model_class) :
     93        if (case[0] == test_case.name) and \
     94           (case[1] == test_case.io) and \
     95           (test_case.solver.version() is not None) and \
     96           (test_case.solver.version() <= case[2]) and \
     97           (case[3] is model_class) :
    9498            return True, case[4]
    9599    return False, ""
Note: See TracChangeset for help on using the changeset viewer.