Source: ubelt
Version: 1.3.6-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/u/ubelt/testing/amd64/


55s =================================== FAILURES
===================================
55s __________________________ test_copy_directory_cases
___________________________
55s
55s def test_copy_directory_cases():
55s """
55s Ignore:
55s
55s cases = [
55s {'dst': '{}'},
55s ]
55s
55s """
55s import pytest
55s import ubelt as ub
55s base = ub.Path.appdir('ubelt/tests/path/copy_move').delete().ensuredir()
55s
55s root1 = (base / 'root1').ensuredir()
55s root2 = (base / 'root2').ensuredir()
55s paths = {
55s 'empty': root1 / 'empty',
55s 'shallow': root1 / 'shallow',
55s 'deep': root1 / 'deep',
55s }
55s for d in paths.values():
55s d.ensuredir()
55s demo_nested_paths(paths['shallow'])
55s demo_nested_paths(paths['deep'], depth=3)
55s
55s # Instead you can always exepct <dst>/<contents> to be the same as
55s # <src>/<contents>.
55s for key, src in paths.items():
55s for meta in ['stats', 'mode', None]:
55s kwargs = {
55s 'meta': meta
55s }
55s root2.delete().ensuredir()
55s # Because root2 exists we error if overwrite if False
55s with pytest.raises(FileExistsError):
55s src.copy(root2, **kwargs)
55s # When overwrite is True,
55s src.copy(root2, overwrite=True, **kwargs)
55s relative_contents(root2)
55s contents1 = relative_contents(src)
55s contents2 = relative_contents(root2)
55s > assert contents1 == contents2
55s E AssertionError: assert [Path('.'), P...'file_0.txt')] ==
[Path('.'), P...h('subdir_0')]
55s E
55s E At index 1 diff: Path('subdir_0') != Path('file_0.txt')
55s E
55s E Full diff:
55s E [
55s E Path('.'),
55s E + Path('subdir_0'),...
55s E
55s E ...Full output truncated (5 lines hidden), use '-vv' to show
55s
55s tests/test_path.py:147: AssertionError

Reply via email to