summaryrefslogtreecommitdiff
path: root/test/zlib
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-17 06:38:08 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-17 06:38:08 +0000
commit7735e2da11ecabdf27b71b8f3c3a240ee955b8df (patch)
tree6ceb83221414a6d87aebcbd2a486c90184347471 /test/zlib
parent7c35618c530c8299da7a4c8516b85ecb5128de67 (diff)
test/zlib/test_zlib.rb (test_path): enable the accidentally-disabled assertion
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/zlib')
-rw-r--r--test/zlib/test_zlib.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb
index c464bb2..6a90c67 100644
--- a/test/zlib/test_zlib.rb
+++ b/test/zlib/test_zlib.rb
@@ -621,9 +621,9 @@ if defined? Zlib
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