diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2024-06-04 16:09:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 16:09:31 (GMT) |
commit | 8fc7653766b106bdbc4ff6154e0020aea4ab15e6 (patch) | |
tree | 3b2873331603a1f2510d4b0067b433c8fc18d81a /Lib/test/test_pyrepl/support.py | |
parent | 4dcd91ceafce91ec37bb1a9d544e41fc65578994 (diff) | |
download | cpython-8fc7653766b106bdbc4ff6154e0020aea4ab15e6.zip cpython-8fc7653766b106bdbc4ff6154e0020aea4ab15e6.tar.gz cpython-8fc7653766b106bdbc4ff6154e0020aea4ab15e6.tar.bz2 |
gh-120041: Do not use append_to_screen when completions are visible (GH-120042)
Diffstat (limited to 'Lib/test/test_pyrepl/support.py')
-rw-r--r-- | Lib/test/test_pyrepl/support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pyrepl/support.py b/Lib/test/test_pyrepl/support.py index d2f5429..e807b5f 100644 --- a/Lib/test/test_pyrepl/support.py +++ b/Lib/test/test_pyrepl/support.py @@ -39,7 +39,7 @@ def code_to_events(code: str): def prepare_reader(console: Console, **kwargs): - config = ReadlineConfig(readline_completer=None) + config = ReadlineConfig(readline_completer=kwargs.pop("readline_completer", None)) reader = ReadlineAlikeReader(console=console, config=config) reader.more_lines = partial(more_lines, namespace=None) reader.paste_mode = True # Avoid extra indents |