summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyrepl/test_pyrepl.py
diff options
context:
space:
mode:
authorCF Bolz-Tereick <cfbolz@gmx.de>2024-08-25 14:52:51 (GMT)
committerGitHub <noreply@github.com>2024-08-25 14:52:51 (GMT)
commitaa905925e1a0120e59e4ffe0874fbd098bf47e63 (patch)
treeba10677c1810aa0ade35499ff41f65c7e3e0fe2a /Lib/test/test_pyrepl/test_pyrepl.py
parent74ff496dce9f7db1dd1e2184d4316cc21d78ee52 (diff)
downloadcpython-aa905925e1a0120e59e4ffe0874fbd098bf47e63.zip
cpython-aa905925e1a0120e59e4ffe0874fbd098bf47e63.tar.gz
cpython-aa905925e1a0120e59e4ffe0874fbd098bf47e63.tar.bz2
gh-123228: don't leak file descriptors in pyrepl test (#123302)
Diffstat (limited to 'Lib/test/test_pyrepl/test_pyrepl.py')
-rw-r--r--Lib/test/test_pyrepl/test_pyrepl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pyrepl/test_pyrepl.py b/Lib/test/test_pyrepl/test_pyrepl.py
index 58078d6..012ce7c 100644
--- a/Lib/test/test_pyrepl/test_pyrepl.py
+++ b/Lib/test/test_pyrepl/test_pyrepl.py
@@ -519,7 +519,7 @@ class TestPyReplOutput(TestCase):
def test_get_line_buffer_returns_str(self):
reader = self.prepare_reader(code_to_events("\n"))
- wrapper = _ReadlineWrapper(reader=reader)
+ wrapper = _ReadlineWrapper(f_in=None, f_out=None, reader=reader)
self.assertIs(type(wrapper.get_line_buffer()), str)
def test_multiline_edit(self):