summaryrefslogtreecommitdiff
path: root/test/zlib
diff options
context:
space:
mode:
Diffstat (limited to 'test/zlib')
-rw-r--r--test/zlib/test_zlib.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb
index addd4270e1..42ee5c6638 100644
--- a/test/zlib/test_zlib.rb
+++ b/test/zlib/test_zlib.rb
@@ -516,14 +516,14 @@ if defined? Zlib
gz.close
results = []
- t = File.open(t.path)
+ t = File.open(t.path, 'rb')
Zlib::GzipReader.zcat(t) do |str|
results << str
end
assert_equal(["foo", "bar"], results)
t.close
- t = File.open(t.path)
+ t = File.open(t.path, 'rb')
assert_equal("foobar", Zlib::GzipReader.zcat(t))
t.close
}