diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-09-10 10:57:30 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-09-10 10:57:30 +0100 |
| commit | 805705dde4beb9db9a1743663d415198fb02eb1a (patch) | |
| tree | e75f0d81c79bb0ee05e87d0aadbd548673106bbe /tests/jq_old_tests.py | |
| parent | e3ca07410215abdbf457dbd1b430d5111e98d85a (diff) | |
Update to jq 1.7
Diffstat (limited to 'tests/jq_old_tests.py')
| -rw-r--r-- | tests/jq_old_tests.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/jq_old_tests.py b/tests/jq_old_tests.py index f7e1f0d..9393cce 100644 --- a/tests/jq_old_tests.py +++ b/tests/jq_old_tests.py @@ -74,8 +74,13 @@ def test_value_error_is_raised_if_program_is_invalid(): jq("!") assert False, "Expected error" except ValueError as 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) + expected_error_strs = [ + # jq 1.6 + "jq: error: syntax error, unexpected INVALID_CHARACTER, expecting $end (Unix shell quoting issues?) at <top-level>, line 1:\n!\njq: 1 compile error", + # jq 1.7 + "jq: error: syntax error, unexpected INVALID_CHARACTER, expecting end of file (Unix shell quoting issues?) at <top-level>, line 1:\n!\njq: 1 compile error", + ] + assert str(error) in expected_error_strs def test_value_error_is_raised_if_input_cannot_be_processed_by_program(): |
