mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +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
|
from xonsh.ptk_shell.shell import PromptToolkitShell
|
||||||
|
|
||||||
inp = create_pipe_input()
|
|
||||||
out = DummyOutput()
|
out = DummyOutput()
|
||||||
|
with create_pipe_input() as inp:
|
||||||
shell = PromptToolkitShell(
|
shell = PromptToolkitShell(
|
||||||
execer=xonsh_execer, ctx={}, ptk_args={"input": inp, "output": out}
|
execer=xonsh_execer, ctx={}, ptk_args={"input": inp, "output": out}
|
||||||
)
|
)
|
||||||
yield inp, out, shell
|
yield inp, out, shell
|
||||||
inp.close()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|
Loading…
Add table
Reference in a new issue