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


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

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

Started byPaul Gevers <elbrus@debian.org>
First post2022-04-26 09:10 +0200
Last post2022-05-08 14:30 +0200
Articles 5 — 3 participants

Back to article view | Back to linux.debian.bugs.rc


Contents

  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

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

FromPaul Gevers <elbrus@debian.org>
Date2022-04-26 09:10 +0200
SubjectBug#1010198: prompt-toolkit breaks xonsh autopkgtest: '_GeneratorContextManager' object has no attribute 'send_text'
Message-ID<EgnuF-bgSz-1@gated-at.bofh.it>

[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

[toc] | [next] | [standalone]


#319317 — Processed: prompt-toolkit breaks xonsh autopkgtest: '_GeneratorContextManager' object has no attribute 'send_text'

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2022-04-26 09:10 +0200
SubjectProcessed: prompt-toolkit breaks xonsh autopkgtest: '_GeneratorContextManager' object has no attribute 'send_text'
Message-ID<EgnuF-bgSz-7@gated-at.bofh.it>
In reply to#319316
Processing control commands:

> found -1 prompt-toolkit/3.0.29-1
Bug #1010198 [src:prompt-toolkit, src:xonsh] prompt-toolkit breaks xonsh autopkgtest: '_GeneratorContextManager' object has no attribute 'send_text'
Marked as found in versions prompt-toolkit/3.0.29-1.
> found -1 xonsh/0.11.0+dfsg-1
Bug #1010198 [src:prompt-toolkit, src:xonsh] prompt-toolkit breaks xonsh autopkgtest: '_GeneratorContextManager' object has no attribute 'send_text'
Marked as found in versions xonsh/0.11.0+dfsg-1.

-- 
1010198: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010198
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#319712 — Bug#1010198: marked as pending in xonsh

FromStefano Rivera <stefanor@debian.org>
Date2022-05-08 14:10 +0200
SubjectBug#1010198: marked as pending in xonsh
Message-ID<EkNTz-e5of-1@gated-at.bofh.it>
In reply to#319316
Control: tag -1 pending

Hello,

Bug #1010198 in xonsh reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/xonsh/-/commit/65fa7b31cfb4a487458a3d71e7154d463cfecba0

------------------------------------------------------------------------
New upstream release. (Closes: #1010198)
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1010198

[toc] | [prev] | [next] | [standalone]


#319713 — Processed: Bug#1010198 marked as pending in xonsh

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2022-05-08 14:10 +0200
SubjectProcessed: Bug#1010198 marked as pending in xonsh
Message-ID<EkNTA-e5of-3@gated-at.bofh.it>
In reply to#319316
Processing control commands:

> tag -1 pending
Bug #1010198 [src:prompt-toolkit, src:xonsh] prompt-toolkit breaks xonsh autopkgtest: '_GeneratorContextManager' object has no attribute 'send_text'
Added tag(s) pending.

-- 
1010198: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010198
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#319714 — Bug#1010198: marked as done (prompt-toolkit breaks xonsh autopkgtest: '_GeneratorContextManager' object has no attribute 'send_text')

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2022-05-08 14:30 +0200
SubjectBug#1010198: marked as done (prompt-toolkit breaks xonsh autopkgtest: '_GeneratorContextManager' object has no attribute 'send_text')
Message-ID<EkOcV-e5uh-3@gated-at.bofh.it>
In reply to#319316

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

Your message dated Sun, 08 May 2022 12:19:02 +0000
with message-id <E1nnfsM-000CJ2-SN@fasolo.debian.org>
and subject line Bug#1010198: fixed in xonsh 0.12.2+dfsg-1
has caused the Debian Bug report #1010198,
regarding prompt-toolkit breaks xonsh autopkgtest: '_GeneratorContextManager' object has no attribute 'send_text'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1010198: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010198
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.rc


csiph-web