diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-20 16:02:22 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-20 16:02:22 +0000 |
commit | f3d0c2729ae572da52e462a14ef67c8423e39312 (patch) | |
tree | 25a190a207a6a9fea03705817e567f7558b28b92 | |
parent | ba568c0ea3c84c2e2fa79168df2c970812403c8e (diff) | |
download | ruby-f3d0c2729ae572da52e462a14ef67c8423e39312.tar.gz |
suppress warning: attempt to close unfinished zstream; reset forced.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/zlib/test_zlib.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb index 06e85f6315..68acc72d9e 100644 --- a/test/zlib/test_zlib.rb +++ b/test/zlib/test_zlib.rb @@ -213,7 +213,9 @@ if defined? Zlib z = Zlib::Deflate.new z << "foo" assert_raise(Zlib::StreamError) { z.set_dictionary("foo") } - z.close # without this, outputs `zlib(finalizer): the stream was freed prematurely.' + EnvUtil.suppress_warning do + z.close # without this, outputs `zlib(finalizer): the stream was freed prematurely.' + end end def test_reset |