Patch-Source: https://github.com/archlinux/svntogit-community/blob/a7f15313fbf1bd4434b6b0a05cf87ec36047ed52/trunk/prompt-toolkit-3.0.29.diff diff --git a/tests/conftest.py b/tests/conftest.py index 4bd573144..8a9e1530b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -40,10 +40,7 @@ def clear_loggers(): @pytest.fixture def ptk_app_session(): - pipe_input = create_pipe_input() output = DummyOutput() - try: + with create_pipe_input() as pipe_input: with create_app_session(input=pipe_input, output=output) as session: yield session - finally: - pipe_input.close()