ruby-changes:7870
From: akr <ko1@a...>
Date: Wed, 17 Sep 2008 02:00:32 +0900 (JST)
Subject: [ruby-changes:7870] Ruby:r19391 (trunk): * test/ruby/test_io_m17n.rb: use __FILE__ instead of /dev/null.
akr 2008-09-17 02:00:08 +0900 (Wed, 17 Sep 2008) New Revision: 19391 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19391 Log: * test/ruby/test_io_m17n.rb: use __FILE__ instead of /dev/null. [ruby-dev:36327] Modified files: trunk/ChangeLog trunk/test/ruby/test_io_m17n.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 19390) +++ ChangeLog (revision 19391) @@ -1,3 +1,8 @@ +Wed Sep 17 01:56:27 2008 Tanaka Akira <akr@f...> + + * test/ruby/test_io_m17n.rb: use __FILE__ instead of /dev/null. + [ruby-dev:36327] + Wed Sep 17 01:33:11 2008 Tanaka Akira <akr@f...> * include/ruby/oniguruma.h (OnigEncodingTypeST): add precise_ret Index: test/ruby/test_io_m17n.rb =================================================================== --- test/ruby/test_io_m17n.rb (revision 19390) +++ test/ruby/test_io_m17n.rb (revision 19391) @@ -809,28 +809,28 @@ def test_set_encoding_binmode assert_raise(ArgumentError) { - open("/dev/null", "rt") {|f| + open(__FILE__, "rt") {|f| f.set_encoding("iso-2022-jp") } } assert_raise(ArgumentError) { - open("/dev/null", "r") {|f| + open(__FILE__, "r") {|f| f.set_encoding("iso-2022-jp") } } assert_nothing_raised { - open("/dev/null", "rb") {|f| + open(__FILE__, "rb") {|f| f.set_encoding("iso-2022-jp") } } assert_nothing_raised { - open("/dev/null", "r") {|f| + open(__FILE__, "r") {|f| f.binmode f.set_encoding("iso-2022-jp") } } assert_nothing_raised { - open("/dev/null", "rt") {|f| + open(__FILE__, "rt") {|f| f.binmode f.set_encoding("iso-2022-jp") } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/