Merge branch 'Prefer-IO_NULL'. Closes #18381.

This commit is contained in:
Yves Senn 2015-01-10 15:11:51 +01:00
commit 89470bbc5e
4 changed files with 4 additions and 4 deletions

@ -225,7 +225,7 @@ def test_add_foreign_key_is_reversible
def silence_stream(stream)
old_stream = stream.dup
stream.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
stream.reopen(IO::NULL)
stream.sync = true
yield
ensure

@ -939,7 +939,7 @@ def quietly
def silence_stream(stream)
old_stream = stream.dup
stream.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
stream.reopen(IO::NULL)
stream.sync = true
yield
ensure

@ -52,7 +52,7 @@ def quietly
def silence_stream(stream)
old_stream = stream.dup
stream.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
stream.reopen(IO::NULL)
stream.sync = true
yield
ensure

@ -341,7 +341,7 @@ def quietly
def silence_stream(stream)
old_stream = stream.dup
stream.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
stream.reopen(IO::NULL)
stream.sync = true
yield
ensure