fix: update using ptk's create_pipe_input

This commit is contained in:
Noortheen Raja 2022-04-09 12:37:16 +05:30 committed by Noorhteen Raja NJ
parent ea51a8a37f
commit bc718a40b5

View file

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