[前][次][番号順一覧][スレッド一覧]

ruby-changes:60249

From: Koichi <ko1@a...>
Date: Mon, 2 Mar 2020 13:16:37 +0900 (JST)
Subject: [ruby-changes:60249] 31c55b6725 (master): need to restore $stdin.

https://git.ruby-lang.org/ruby.git/commit/?id=31c55b6725

From 31c55b672501a843d3db88e7a792f0edbb646607 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Mon, 2 Mar 2020 13:13:24 +0900
Subject: need to restore $stdin.


diff --git a/test/cgi/test_cgi_core.rb b/test/cgi/test_cgi_core.rb
index 255203d..f7adb7e 100644
--- a/test/cgi/test_cgi_core.rb
+++ b/test/cgi/test_cgi_core.rb
@@ -88,6 +88,8 @@ class CGICoreTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/cgi/test_cgi_core.rb#L88
     ## invalid parameter name
     assert_equal('', cgi['*notfound*'])
     assert_equal([], cgi.params['*notfound*'])
+  ensure
+    $stdin = STDIN
   end
 
   def test_cgi_core_params_encoding_check
@@ -125,6 +127,8 @@ class CGICoreTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/cgi/test_cgi_core.rb#L127
     else
       assert(true)
     end
+  ensure
+    $stdin = STDIN
   end
 
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]