summaryrefslogtreecommitdiff
path: root/test/zlib
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-09 10:42:18 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-09 10:42:18 +0000
commit98ddbafb265324e9f89b2546dc85d2b54dac4c43 (patch)
tree61e11e7fc2f59dfc599468271d8267cd013e1c15 /test/zlib
parent2cf2416ea09ca63efb8469650809bd5fd1707460 (diff)
* test/zlib/test_zlib.rb (TestZlibGzipWriter#test_writer_wrap): set
binmode explicitly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/zlib')
-rw-r--r--test/zlib/test_zlib.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb
index 37781bc..4149c8a 100644
--- a/test/zlib/test_zlib.rb
+++ b/test/zlib/test_zlib.rb
@@ -760,6 +760,7 @@ if defined? Zlib
def test_writer_wrap
t = Tempfile.new("test_zlib_gzip_writer_wrap")
+ t.binmode
Zlib::GzipWriter.wrap(t) {|gz| gz.print("foo") }
t.close
assert_equal("foo", Zlib::GzipReader.open(t.path) {|gz| gz.read })