Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #319316

Bug#1010198: prompt-toolkit breaks xonsh autopkgtest: '_GeneratorContextManager' object has no attribute 'send_text'

From Paul Gevers <elbrus@debian.org>
Newsgroups linux.debian.bugs.rc
Subject Bug#1010198: prompt-toolkit breaks xonsh autopkgtest: '_GeneratorContextManager' object has no attribute 'send_text'
Date 2022-04-26 09:10 +0200
Message-ID <EgnuF-bgSz-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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-ci@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

Back to linux.debian.bugs.rc | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1010198: prompt-toolkit breaks xonsh autopkgtest: '_GeneratorContextManager' object has no attribute 'send_text' Paul Gevers <elbrus@debian.org> - 2022-04-26 09:10 +0200
  Processed: prompt-toolkit breaks xonsh autopkgtest:  '_GeneratorContextManager' object has no attribute 'send_text' "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-04-26 09:10 +0200
  Bug#1010198: marked as pending in xonsh Stefano Rivera <stefanor@debian.org> - 2022-05-08 14:10 +0200
  Processed: Bug#1010198 marked as pending in xonsh "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-05-08 14:10 +0200
  Bug#1010198: marked as done (prompt-toolkit breaks xonsh  autopkgtest: '_GeneratorContextManager' object has no attribute  'send_text') "Debian Bug Tracking System" <owner@bugs.debian.org> - 2022-05-08 14:30 +0200

csiph-web