From cc9b1d7ba8231fe506d765d47cc1332c550d6f33 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 5 Dec 2022 19:31:18 +0900 Subject: [PATCH] Close leaked pty IOs --- test/irb/test_debug_cmd.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/irb/test_debug_cmd.rb b/test/irb/test_debug_cmd.rb index 5033431a0..0242baa26 100644 --- a/test/irb/test_debug_cmd.rb +++ b/test/irb/test_debug_cmd.rb @@ -223,6 +223,9 @@ def run_ruby_file(&block) end end end + ensure + read.close + write.close end lines.join