mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
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:
parent
21f2c194bb
commit
ae042f21fb
30 changed files with 100 additions and 100 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue