Source: loguru
Version: 0.6.0-1
Severity: serious
User: debian...@lists.debian.org
Usertags: regression

Dear maintainer(s),

I looked at the results of the autopkgtest of you package because it was showing up as a regression for the upload of python3-defaults on all architectures. However, it turns out that your test very recently regressed in testing, it now fails everywhere [1].

Paul

[0] https://ci.debian.net/packages/l/loguru/


https://ci.debian.net/data/autopkgtest/testing/amd64/l/loguru/24840388/log.gz

=================================== FAILURES =================================== __________________________ test_function_without_name __________________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe61feb48b0>

>   ???

tests/test_repr.py:119:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/loguru/_logger.py:792: in add
elif iscoroutinefunction(sink) or iscoroutinefunction(getattr(sink, "__call__", None)):
/usr/lib/python3.10/inspect.py:313: in iscoroutinefunction
    return _has_code_flag(obj, CO_COROUTINE)
/usr/lib/python3.10/inspect.py:297: in _has_code_flag
    if not (isfunction(f) or _signature_is_functionlike(f)):
/usr/lib/python3.10/inspect.py:2009: in _signature_is_functionlike
    if not callable(obj) or isclass(obj):
tests/test_repr.py:117: in <lambda>
monkeypatch.setattr(builtins, "callable", lambda x: x is function or callable(x))
tests/test_repr.py:117: in <lambda>
monkeypatch.setattr(builtins, "callable", lambda x: x is function or callable(x))
E   RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
________________________ test_function_with_empty_name _________________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe61f87ba60>

    def test_function_with_empty_name(monkeypatch):
        function = Wrapper(lambda _: None, repr="<FunctionEmpty>", name="")
monkeypatch.setattr(builtins, "callable", lambda x: x is function or callable(x))

>       logger.add(function)

tests/test_repr.py:128:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/loguru/_logger.py:792: in add
elif iscoroutinefunction(sink) or iscoroutinefunction(getattr(sink, "__call__", None)):
/usr/lib/python3.10/inspect.py:313: in iscoroutinefunction
    return _has_code_flag(obj, CO_COROUTINE)
/usr/lib/python3.10/inspect.py:297: in _has_code_flag
    if not (isfunction(f) or _signature_is_functionlike(f)):
/usr/lib/python3.10/inspect.py:2009: in _signature_is_functionlike
    if not callable(obj) or isclass(obj):
tests/test_repr.py:126: in <lambda>
monkeypatch.setattr(builtins, "callable", lambda x: x is function or callable(x))
tests/test_repr.py:126: in <lambda>
monkeypatch.setattr(builtins, "callable", lambda x: x is function or callable(x))
E   RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to