diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-16 17:00:08 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-16 17:00:08 +0000 |
commit | 87fba4c425b494d3fe42906a0eb97cc8015e0809 (patch) | |
tree | 02dfa3d9e5e71519890a922cfeffb1f83c191742 | |
parent | b3d772643e9eea84f71b168771f15d41d85e7341 (diff) | |
download | ruby-87fba4c425b494d3fe42906a0eb97cc8015e0809.tar.gz |
* test/ruby/test_io_m17n.rb: use __FILE__ instead of /dev/null.
[ruby-dev:36327]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_io_m17n.rb | 10 |
2 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,8 @@ +Wed Sep 17 01:56:27 2008 Tanaka Akira <akr@fsij.org> + + * 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@fsij.org> * include/ruby/oniguruma.h (OnigEncodingTypeST): add precise_ret diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index 237698b868..3c2e5112d8 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -809,28 +809,28 @@ EOT 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") } |