ruby-changes:50964
From: mame <ko1@a...>
Date: Tue, 17 Apr 2018 15:38:15 +0900 (JST)
Subject: [ruby-changes:50964] mame:r63171 (trunk): test/zlib/test_zlib.rb (test_path): enable the accidentally-disabled assertion
mame 2018-04-17 15:38:08 +0900 (Tue, 17 Apr 2018) New Revision: 63171 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63171 Log: test/zlib/test_zlib.rb (test_path): enable the accidentally-disabled assertion Modified files: trunk/test/zlib/test_zlib.rb Index: test/zlib/test_zlib.rb =================================================================== --- test/zlib/test_zlib.rb (revision 63170) +++ test/zlib/test_zlib.rb (revision 63171) @@ -621,9 +621,9 @@ if defined? Zlib https://github.com/ruby/ruby/blob/trunk/test/zlib/test_zlib.rb#L621 gz.close sio = StringIO.new(s) - Zlib::GzipReader.new(sio) do |f| - assert_raise(NoMethodError) { f.path } - end + gz = Zlib::GzipReader.new(sio) + assert_raise(NoMethodError) { gz.path } + gz.close } end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/