Source: python-omegaconf
Version: 2.3.0-1.1
Severity: serious
User: debian-pyt...@lists.debian.org
Usertags: python3.13

Hi Maintainer

The autopkgtests of this package 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/p/python-omegaconf/testing/amd64/


79s =================================== FAILURES
===================================
79s ____ test_errors[typed_DictConfig:assign_with_invalid_value,path_to_float]
_____
79s
79s expected = Expected(exception_type=<class
'omegaconf.errors.ValidationError'>, msg="Value 'hello.txt' of type
'pathlib.(Posix|Win..., parent_node=<function Expected.<lambda> at
0x7f7891eed580>, object_type_str='dict', ref_type_str='AUTO',
num_lines=2)
79s monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f78922acc90>
79s
79s @mark.parametrize("expected", params)
79s def test_errors(expected: Expected, monkeypatch: Any) -> None:
79s monkeypatch.setenv("OC_CAUSE", "0")
79s cfg = expected.create()
79s expected.finalize(cfg)
79s if expected.msg_is_regex:
79s match = expected.msg
79s else:
79s match = re.escape(expected.msg)
79s
79s with raises(expected.exception_type, match=match) as einfo:
79s try:
79s expected.op(cfg)
79s except Exception as e:
79s # helps in debugging
79s > raise e
79s
79s tests/test_errors.py:1602:
79s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
79s tests/test_errors.py:1599: in test_errors
79s expected.op(cfg)
79s tests/test_errors.py:719: in <lambda>
79s op=lambda cfg: cfg.__setattr__("bar", Path("hello.txt")),
79s omegaconf/dictconfig.py:338: in __setattr__
79s self._format_and_raise(key=key, value=value, cause=e)
79s omegaconf/base.py:231: in _format_and_raise
79s format_and_raise(
79s omegaconf/_utils.py:899: in format_and_raise
79s _raise(ex, cause)
79s omegaconf/_utils.py:797: in _raise
79s raise ex.with_traceback(sys.exc_info()[2]) # set env var
OC_CAUSE=1 for full trace
79s omegaconf/dictconfig.py:334: in __setattr__
79s self.__set_impl(key, value)
79s omegaconf/dictconfig.py:318: in __set_impl
79s self._set_item_impl(key, value)
79s omegaconf/basecontainer.py:604: in _set_item_impl
79s self.__dict__["_content"][key]._set_value(value)
79s omegaconf/nodes.py:46: in _set_value
79s self._val = self.validate_and_convert(value)
79s omegaconf/nodes.py:76: in validate_and_convert
79s return self._validate_and_convert_impl(value)

Reply via email to