Source: deepdiff Version: 5.8.2-3 Severity: serious Tags: sid bookworm User: debian...@lists.debian.org Usertags: needs-update User: debian-pyt...@lists.debian.org Usertags: python3.11 Control: affects -1 src:python3-defaults
Dear maintainer(s),We are in the transition of adding python3.11 as a supported Python version [0]. With a recent upload of python3-defaults the autopkgtest of deepdiff fails in testing when that autopkgtest is run with the binary packages of python3-defaults from unstable. It passes when run with only packages from testing. In tabular form:
pass fail python3-defaults from testing 3.10.6-3 deepdiff from testing 5.8.2-3 all others from testing from testing I copied some of the output at the bottom of this report.Currently this regression is blocking the migration of python3-defaults to testing [1]. https://docs.python.org/3/whatsnew/3.11.html lists what's new in Python3.11, it may help to identify what needs to be updated.
More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation Paul [0] https://bugs.debian.org/1021984 [1] https://qa.debian.org/excuses.php?package=python3-defaults https://ci.debian.net/data/autopkgtest/testing/amd64/d/deepdiff/28726222/log.gz=================================== FAILURES =================================== _________________________ TestDeepDiffText.test_enums __________________________
self = <tests.test_diff_text.TestDeepDiffText object at 0x7f8e09e9ee10> def test_enums(self): from enum import Enum class MyEnum(Enum): A = 1 B = 2 ddiff = DeepDiff(MyEnum.A, MyEnum(1)) result = {} assert ddiff == result ddiff = DeepDiff(MyEnum.A, MyEnum.B) result = { 'values_changed': { 'root._name_': { 'old_value': 'A', 'new_value': 'B' }, 'root._value_': { 'old_value': 1, 'new_value': 2 }, 'root.name': { 'old_value': 'A', 'new_value': 'B' }, 'root.value': { 'old_value': 1, 'new_value': 2 }, } }
E AssertionError: assert {'values_chan...d_value': 1}}} == {'values_chan...d_value': 1}}}assert ddiff == result
E Differing items:E {'values_changed': {'root._name_': {'new_value': 'B', 'old_value': 'A'}, 'root._sort_order_': {'new_value': 1, 'old_value': 0}, 'root._value_': {'new_value': 2, 'old_value': 1}, 'root.name': {'new_value': 'B', 'old_value': 'A'}, ...}} != {'values_changed': {'root._name_': {'new_value': 'B', 'old_value': 'A'}, 'root._value_': {'new_value': 2, 'old_value': 1}, 'root.name': {'new_value': 'B', 'old_value': 'A'}, 'root.value': {'new_value': 2, 'old_value': 1}}}
E Use -v to get more diff tests/test_diff_text.py:584: AssertionError__________________________ TestDeepHashPrep.test_enum __________________________
self = <tests.test_hash.TestDeepHashPrep object at 0x7f8e0a0b7b90> def test_enum(self): class MyEnum(Enum): A = 1 B = 2> assert DeepHashPrep(MyEnum.A)[MyEnum.A] == r'objMyEnum:{str:_name_:str:A;str:_value_:int:1}' E AssertionError: assert 'objMyEnum:{s...value_:int:1}' == 'objMyEnum:{s...value_:int:1}'
E - objMyEnum:{str:_name_:str:A;str:_value_:int:1}E + objMyEnum:{str:_name_:str:A;str:_sort_order_:int:0;str:_value_:int:1}
E ? +++++++++++++++++++++++ tests/test_hash.py:269: AssertionError
OpenPGP_signature
Description: OpenPGP digital signature