mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
fix: update using ptk's create_pipe_input
This commit is contained in:
parent
ea51a8a37f
commit
bc718a40b5
1 changed files with 5 additions and 6 deletions
|
@ -373,13 +373,12 @@ def ptk_shell(xonsh_execer):
|
|||
|
||||
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()
|
||||
with create_pipe_input() as inp:
|
||||
shell = PromptToolkitShell(
|
||||
execer=xonsh_execer, ctx={}, ptk_args={"input": inp, "output": out}
|
||||
)
|
||||
yield inp, out, shell
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
Loading…
Add table
Reference in a new issue