diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/jq_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/jq_tests.py b/tests/jq_tests.py index 69c37df..c42c862 100644 --- a/tests/jq_tests.py +++ b/tests/jq_tests.py @@ -217,13 +217,13 @@ def test_value_error_is_raised_if_input_cannot_be_processed_by_program(): assert_equal(str(error), expected_error_str) -def test_non_string_error_is_converted_to_generic_string(): +def test_non_string_error_is_converted_to_json_text(): program = jq.compile("error") try: - program.input(1).all() + program.input({"x": 1}).all() assert False, "Expected error" except ValueError as error: - expected_error_str = "(not a string)" + expected_error_str = '{"x": 1}' assert_equal(str(error), expected_error_str) |
