use assert_raise

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-06-02 02:18:44 +00:00
parent 21f2c194bb
commit ae042f21fb
30 changed files with 100 additions and 100 deletions

View file

@ -48,7 +48,7 @@ class TestSocket_UDPSocket < Test::Unit::TestCase
s = UDPSocket.new
e = assert_raises(Errno::EADDRINUSE) do
e = assert_raise(Errno::EADDRINUSE) do
s.bind(host, port)
end
@ -61,7 +61,7 @@ class TestSocket_UDPSocket < Test::Unit::TestCase
def test_send_too_long
u = UDPSocket.new
e = assert_raises Errno::EMSGSIZE do
e = assert_raise(Errno::EMSGSIZE) do
u.send "\0" * 100_000, 0, "127.0.0.1", 7 # echo
end