Source: prompt-toolkit, xonsh
Control: found -1 prompt-toolkit/3.0.29-1
Control: found -1 xonsh/0.11.0+dfsg-1
Severity: serious
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: breaks needs-update

Dear maintainer(s),

With a recent upload of prompt-toolkit the autopkgtest of xonsh fails in testing when that autopkgtest is run with the binary packages of prompt-toolkit from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
prompt-toolkit         from testing    3.0.29-1
xonsh                  from testing    0.11.0+dfsg-1
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 prompt-toolkit to testing [1]. Due to the nature of this issue, I filed this bug report against both packages. Can you please investigate the situation and reassign the bug to the right package?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=prompt-toolkit

https://ci.debian.net/data/autopkgtest/testing/amd64/x/xonsh/21156238/log.gz

______________ ERROR at teardown of test_ptk_prompt['hello'-None] ______________

xonsh_execer = <xonsh.__amalgam__.Execer object at 0x7fcdeb514a30>

    @pytest.fixture
    def ptk_shell(xonsh_execer):
        from prompt_toolkit.input import create_pipe_input
        from prompt_toolkit.output import DummyOutput
        from xonsh.ptk_shell.shell import PromptToolkitShell
            inp = create_pipe_input()
        out = DummyOutput()
        shell = PromptToolkitShell(
execer=xonsh_execer, ctx={}, ptk_args={"input": inp, "output": out}
        )
        yield inp, out, shell
      inp.close()
E AttributeError: '_GeneratorContextManager' object has no attribute 'close'

tests/conftest.py:194: AttributeError
________________ ERROR at teardown of test_ptk_prompt[2 * 3-6] _________________

xonsh_execer = <xonsh.__amalgam__.Execer object at 0x7fcdeb2f0400>

    @pytest.fixture
    def ptk_shell(xonsh_execer):
        from prompt_toolkit.input import create_pipe_input
        from prompt_toolkit.output import DummyOutput
        from xonsh.ptk_shell.shell import PromptToolkitShell
            inp = create_pipe_input()
        out = DummyOutput()
        shell = PromptToolkitShell(
execer=xonsh_execer, ctx={}, ptk_args={"input": inp, "output": out}
        )
        yield inp, out, shell
      inp.close()
E AttributeError: '_GeneratorContextManager' object has no attribute 'close'

tests/conftest.py:194: AttributeError
=================================== FAILURES =================================== ________________________ test_ptk_prompt['hello'-None] _________________________

line = "'hello'", exp = None
ptk_shell = (<contextlib._GeneratorContextManager object at 0x7fcdeb517940>, <prompt_toolkit.output.base.DummyOutput object at 0x7fcdeacb2e90>, <xonsh.ptk_shell.shell.PromptToolkitShell object at 0x7fcdeadac3a0>)
capsys = <_pytest.capture.CaptureFixture object at 0x7fcdeae03190>

    @pytest.mark.parametrize(
        "line, exp",
        [
            [repr("hello"), None],
            ["2 * 3", "6"],
        ],
    )
    def test_ptk_prompt(line, exp, ptk_shell, capsys):
        inp, out, shell = ptk_shell
      inp.send_text(f"{line}\nexit\n")  # note: terminate with '\n'
E AttributeError: '_GeneratorContextManager' object has no attribute 'send_text'

tests/test_ptk_shell.py:139: AttributeError
___________________________ test_ptk_prompt[2 * 3-6] ___________________________

line = '2 * 3', exp = '6'
ptk_shell = (<contextlib._GeneratorContextManager object at 0x7fcdeb2f1480>, <prompt_toolkit.output.base.DummyOutput object at 0x7fcdeacd6b00>, <xonsh.ptk_shell.shell.PromptToolkitShell object at 0x7fcdeb588e20>)
capsys = <_pytest.capture.CaptureFixture object at 0x7fcdeb749c90>

    @pytest.mark.parametrize(
        "line, exp",
        [
            [repr("hello"), None],
            ["2 * 3", "6"],
        ],
    )
    def test_ptk_prompt(line, exp, ptk_shell, capsys):
        inp, out, shell = ptk_shell
      inp.send_text(f"{line}\nexit\n")  # note: terminate with '\n'
E AttributeError: '_GeneratorContextManager' object has no attribute 'send_text'

tests/test_ptk_shell.py:139: AttributeError

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to