Skip to content

Commit

Permalink
gh-123228: don't leak file descriptors in pyrepl test (#123302)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfbolz authored Aug 25, 2024
1 parent 74ff496 commit aa90592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_pyrepl/test_pyrepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit aa90592

Please sign in to comment.