ruby-changes:18195
From: usa <ko1@a...>
Date: Wed, 15 Dec 2010 11:28:02 +0900 (JST)
Subject: [ruby-changes:18195] Ruby:r30216 (trunk): * test/zlib/test_zlib.rb (test_to_io): forgotten to fix with r30201.
usa 2010-12-15 11:20:37 +0900 (Wed, 15 Dec 2010) New Revision: 30216 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30216 Log: * test/zlib/test_zlib.rb (test_to_io): forgotten to fix with r30201. Modified files: trunk/ChangeLog trunk/test/zlib/test_zlib.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30215) +++ ChangeLog (revision 30216) @@ -1,3 +1,7 @@ +Wed Dec 15 11:19:33 2010 NAKAMURA Usaku <usa@r...> + + * test/zlib/test_zlib.rb (test_to_io): forgotten to fix with r30201. + Wed Dec 15 11:07:34 2010 Nobuyoshi Nakada <nobu@r...> * io.c (simple_sendfile): enable on Mac OS X. Index: test/zlib/test_zlib.rb =================================================================== --- test/zlib/test_zlib.rb (revision 30215) +++ test/zlib/test_zlib.rb (revision 30216) @@ -237,8 +237,9 @@ t.close Zlib::GzipWriter.open(t.path) {|gz| gz.print("foo") } - f = Zlib::GzipReader.open(t.path) - assert_kind_of(IO, f.to_io) + Zlib::GzipReader.open(t.path) do |f| + assert_kind_of(IO, f.to_io) + end end def test_crc -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/