Package: src:yoyo
Version: 7.3.2+dfsg1-2
Severity: serious
Tags: sid bookworm

https://ci.debian.net/data/autopkgtest/testing/amd64/y/yoyo/26325726/log.gz

[...]
self = <mock.mock._patch object at 0x7febe1e529e0>

    def get_original(self):
        target = self.getter()
        name = self.attribute

        original = DEFAULT
        local = False

        try:
            original = target.__dict__[name]
        except (AttributeError, KeyError):
            original = getattr(target, name, DEFAULT)
        else:
            local = True

        if name in _builtins and isinstance(target, ModuleType):
            self.create = True

        if not self.create and original is DEFAULT:
>           raise AttributeError(
                "%s does not have the attribute %r" % (target, name)
            )
E AttributeError: <class 'pkg_resources._vendor.pyparsing.common.pyparsing_common'> does not have the attribute 'datetime'

/usr/lib/python3/dist-packages/mock/mock.py:1387: AttributeError
______________ TestNewMigration.test_it_calls_post_create_command ______________

self = <yoyo.tests.test_cli_script.TestNewMigration object at 0x7febe22d3850>
tmpdir = local('/tmp/pytest-of-debci/pytest-0/test_it_calls_post_create_comm0')

    def test_it_calls_post_create_command(self, tmpdir):
        self.writeconfig(post_create_command="/bin/ls -l {} {}")
>       with frozendate.freeze(2001, 1, 1):

/tmp/autopkgtest-lxc.weskrs7o/downtmp/build.pgf/src/yoyo/tests/test_cli_script.py:522:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.10/contextlib.py:135: in __enter__
    return next(self.gen)
/tmp/autopkgtest-lxc.weskrs7o/downtmp/build.pgf/src/debian/tests/frozendate.py:251: in freeze
    _patch(modules, when)
/tmp/autopkgtest-lxc.weskrs7o/downtmp/build.pgf/src/debian/tests/frozendate.py:196: in _patch
    patches = sum((_patch_module(m, relnow) for m in modules), [])
/tmp/autopkgtest-lxc.weskrs7o/downtmp/build.pgf/src/debian/tests/frozendate.py:196: in <genexpr>
    patches = sum((_patch_module(m, relnow) for m in modules), [])
/tmp/autopkgtest-lxc.weskrs7o/downtmp/build.pgf/src/debian/tests/frozendate.py:169: in _patch_module
    p.start()
/usr/lib/python3/dist-packages/mock/mock.py:1550: in start
    result = self.__enter__()
/usr/lib/python3/dist-packages/mock/mock.py:1414: in __enter__
    original, local = self.get_original()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <mock.mock._patch object at 0x7febe1a52e60>

    def get_original(self):
        target = self.getter()
        name = self.attribute

        original = DEFAULT
        local = False

        try:
            original = target.__dict__[name]
        except (AttributeError, KeyError):
            original = getattr(target, name, DEFAULT)
        else:
            local = True

        if name in _builtins and isinstance(target, ModuleType):
            self.create = True

        if not self.create and original is DEFAULT:
>           raise AttributeError(
                "%s does not have the attribute %r" % (target, name)
            )
E AttributeError: <class 'pkg_resources._vendor.pyparsing.common.pyparsing_common'> does not have the attribute 'datetime'

/usr/lib/python3/dist-packages/mock/mock.py:1387: AttributeError

Reply via email to