Source: deepdiff
Version: 6.7.1-2
Severity: serious
User: [email protected]
Usertags: python3.13

Hi Maintainer

deepdiff's autopkgtests fail with Python 3.13 [1].  I've copied what I
hope is the relevant part of the log below.

Regards
Graham


[1] https://ci.debian.net/packages/d/deepdiff/testing/amd64/


88s =================================== FAILURES
===================================
88s _ TestCommands.test_diff_command[t1_corrupt.json-t2.json-Expecting
property name enclosed in double quotes-1] _
88s
88s self = <tests.test_command.TestCommands object at 0x7f9ff24cd1d0>
88s t1 = 
'/tmp/autopkgtest-lxc.vltyendi/downtmp/autopkgtest_tmp/tests/fixtures/t1_corrupt.json'
88s t2 = 
'/tmp/autopkgtest-lxc.vltyendi/downtmp/autopkgtest_tmp/tests/fixtures/t2.json'
88s expected_in_stdout = 'Expecting property name enclosed in double quotes'
88s expected_exit_code = 1
88s
88s @pytest.mark.parametrize('t1, t2, expected_in_stdout, expected_exit_code', [
88s ('t1.json', 't2.json', '"dictionary_item_added": [\n "root[0]', 0),
88s ('t1_corrupt.json', 't2.json', "Expecting property name enclosed
in double quotes", 1),
88s ('t1.json', 't2_json.csv', '"old_value": "value2"', 0),
88s ('t2_json.csv', 't1.json', '"old_value": "value3"', 0),
88s ('t1.csv', 't2.csv', '"new_value": "James"', 0),
88s ('t1.toml', 't2.toml', "10.0.0.2", 0),
88s ('t1.pickle', 't2.pickle', '"new_value": 5,\n "old_value": 1', 0),
88s ('t1.yaml', 't2.yaml', '"new_value": 61,\n "old_value": 65', 0),
88s ])
88s def test_diff_command(self, t1, t2, expected_in_stdout, expected_exit_code):
88s t1 = os.path.join(FIXTURES_DIR, t1)
88s t2 = os.path.join(FIXTURES_DIR, t2)
88s runner = CliRunner()
88s result = runner.invoke(diff, [t1, t2])
88s assert result.exit_code == expected_exit_code
88s > assert expected_in_stdout in result.output
88s E AssertionError: assert 'Expecting property name enclosed in
double quotes' in 'Error when loading t1: Illegal trailing comma
before end of object: line 3 column 21 (char 45)\n'
88s E + where 'Error when loading t1: Illegal trailing comma before
end of object: line 3 column 21 (char 45)\n' = <Result
SystemExit('Error when loading t1: Illegal trailing comma before end
of object: line 3 column 21 (char 45)')>.output
88s
88s tests/test_command.py:29: AssertionError

Reply via email to