test_io.rb: use assert_not_predicate

* test/ruby/test_io.rb (test_DATA_binmode): assert_not_predicate
  for more descriptive message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-10-15 23:34:27 +00:00
parent 9ec940a4c9
commit 64efbf246e

View file

@ -2470,15 +2470,10 @@ End
end end
def test_DATA_binmode def test_DATA_binmode
make_tempfile {|t| assert_separately([], <<-SRC)
open(t.path, "w") {|f| assert_not_predicate(DATA, :binmode?)
f.puts <<-SRC
puts DATA.binmode?
__END__ __END__
SRC SRC
}
assert_in_out_err(t.path, [], %w(false))
}
end end
def test_threaded_flush def test_threaded_flush