mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 10:33:58 +02:00
* test/zlib/test_zlib.rb (TestZlibGzipReader#test_reader_wrap): set
binmode explicitly for fixing test error on Windows. This is consistent with r34243. [ruby-dev:45149] [Bug #5812] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8f655293ed
commit
11de7c034b
2 changed files with 8 additions and 0 deletions
|
@ -691,6 +691,7 @@ if defined? Zlib
|
|||
t.close
|
||||
Zlib::GzipWriter.open(t.path) {|gz| gz.print("foo") }
|
||||
f = open(t.path)
|
||||
f.binmode
|
||||
assert_equal("foo", Zlib::GzipReader.wrap(f) {|gz| gz.read })
|
||||
assert_raise(IOError) { f.close }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue