https://github.com/python/cpython/commit/aa905925e1a0120e59e4ffe0874fbd098bf47e63
commit: aa905925e1a0120e59e4ffe0874fbd098bf47e63
branch: main
author: CF Bolz-Tereick <[email protected]>
committer: pablogsal <[email protected]>
date: 2024-08-25T15:52:51+01:00
summary:
gh-123228: don't leak file descriptors in pyrepl test (#123302)
files:
M Lib/test/test_pyrepl/test_pyrepl.py
diff --git a/Lib/test/test_pyrepl/test_pyrepl.py
b/Lib/test/test_pyrepl/test_pyrepl.py
index 58078d6ff11b39..012ce7c5a6ba19 100644
--- a/Lib/test/test_pyrepl/test_pyrepl.py
+++ b/Lib/test/test_pyrepl/test_pyrepl.py
@@ -519,7 +519,7 @@ def test_basic(self):
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):
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]