summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-05 19:31:18 +0900
committergit <svn-admin@ruby-lang.org>2022-12-05 12:03:57 +0000
commit74923aaf31ae49cd372f2fe54baa4115a20bfe76 (patch)
tree597f0eb22be4e61173dfe84d7b275250e198d00b
parent8e5d1277fa8dd359b6e4077eee4fbad6fe8d521c (diff)
[ruby/irb] Close leaked pty IOs
https://github.com/ruby/irb/commit/cc9b1d7ba8
-rw-r--r--test/irb/test_debug_cmd.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/irb/test_debug_cmd.rb b/test/irb/test_debug_cmd.rb
index 5033431a02..0242baa261 100644
--- a/test/irb/test_debug_cmd.rb
+++ b/test/irb/test_debug_cmd.rb
@@ -223,6 +223,9 @@ module TestIRB
end
end
end
+ ensure
+ read.close
+ write.close
end
lines.join