diff --git a/Tests/RunCMake/FileAPI/check_index.py b/Tests/RunCMake/FileAPI/check_index.py index 20243c003b..64c17d0993 100644 --- a/Tests/RunCMake/FileAPI/check_index.py +++ b/Tests/RunCMake/FileAPI/check_index.py @@ -5,6 +5,7 @@ import re if sys.version_info[0] >= 3: unicode = str + long = int def is_bool(x, val=None): return isinstance(x, bool) and (val is None or x == val) diff --git a/Tests/RunCMake/FileAPI/codemodel-v2-check.py b/Tests/RunCMake/FileAPI/codemodel-v2-check.py index 5f41ad9fcb..834b2ca63b 100644 --- a/Tests/RunCMake/FileAPI/codemodel-v2-check.py +++ b/Tests/RunCMake/FileAPI/codemodel-v2-check.py @@ -24,7 +24,7 @@ def check_backtrace(t, b, backtrace): if expected["line"] is not None: expected_keys.append("line") - assert is_int(node["line"], expected["line"]) + assert is_int(node["line"], expected["line"]), repr(node["line"]) + " != " + repr(expected["line"]) if expected["command"] is not None: expected_keys.append("command")