Changeset 13643


Ignore:
Timestamp:
Oct 2, 2019 4:19:42 PM (2 months ago)
Author:
randersson
Message:

#5819 Updated test with better error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-5819/Python/src/tests_jmodelica/test_compiler.py

    r13642 r13643  
    488488            compile_fmu(model_name, file_name = file_name)
    489489        except OSError as e:
    490             assert str(e) == 'NonExistantFile (The system cannot find the file specified)'
     490            expected_msg = 'NonExistantFile (The system cannot find the file specified)'
     491            err_msg = "EXPECTED: OSError: {}\nRECEIVED: {}: {}\n".format(expected_msg, e.__name__, str(e))
     492            assert str(e) == expected_msg, err_msg
    491493   
    492494    def assert_compiler_option_missing(self, option_name, exception) :
Note: See TracChangeset for help on using the changeset viewer.