diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-09-08 23:32:59 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-09-09 00:08:45 +0100 |
| commit | 75e786256c2bd1d3acdbccb7bf769443679f590d (patch) | |
| tree | 0e615e0b931ffbda8e8944762554c2b622d47571 /tests | |
| parent | 67294953a9ef2c72584bc6801457f3de2dec5c7f (diff) | |
Update jq to 1.5
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/jq_tests.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/jq_tests.py b/tests/jq_tests.py index c0f4391..6220511 100644 --- a/tests/jq_tests.py +++ b/tests/jq_tests.py @@ -77,9 +77,7 @@ def value_error_is_raised_if_program_is_invalid(): jq("!") assert False, "Expected error" except ValueError as error: - expected_error_str = """error: syntax error, unexpected INVALID_CHARACTER, expecting $end -! -1 compile error""" + expected_error_str = "jq: error: syntax error, unexpected INVALID_CHARACTER, expecting $end (Unix shell quoting issues?) at <top-level>, line 1:\n!\njq: 1 compile error" assert_equal(str(error), expected_error_str) @@ -90,7 +88,7 @@ def value_error_is_raised_if_input_cannot_be_processed_by_program(): program.transform(1) assert False, "Expected error" except ValueError as error: - expected_error_str = "jq: error: Cannot index number with string" + expected_error_str = "Cannot index number with string \"x\"" assert_equal(str(error), expected_error_str) @@ -113,7 +111,7 @@ def value_error_is_raised_if_input_is_not_valid_json(): program.transform(text="!!") assert False, "Expected error" except ValueError as error: - expected_error_str = "parse error: Invalid numeric literal\n" + expected_error_str = "parse error: Invalid numeric literal at EOF at line 1, column 2" assert_equal(str(error), expected_error_str) |
