about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--t/close-has-env.ru1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/close-has-env.ru b/t/close-has-env.ru
index 471f605..3b6ec88 100644
--- a/t/close-has-env.ru
+++ b/t/close-has-env.ru
@@ -10,6 +10,7 @@ class ClosablePipe < ::IO
   end
 
   def close
+    return if closed? # idempotent for Ruby 2.3.0 compatibility
     super
     $stdout.syswrite "path_info=#{@env['PATH_INFO']}\n"
   end