mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
* test: assert_raises has been deprecated since a long time ago.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
48fdf59dcf
commit
00b4a3f9c4
59 changed files with 284 additions and 284 deletions
|
@ -38,8 +38,8 @@ class TestReadPartial < Test::Unit::TestCase
|
|||
w.close
|
||||
assert_equal('ab', r.readpartial(2))
|
||||
assert_equal('c', r.readpartial(2))
|
||||
assert_raises(EOFError) { r.readpartial(2) }
|
||||
assert_raises(EOFError) { r.readpartial(2) }
|
||||
assert_raise(EOFError) { r.readpartial(2) }
|
||||
assert_raise(EOFError) { r.readpartial(2) }
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -48,7 +48,7 @@ class TestReadPartial < Test::Unit::TestCase
|
|||
w << 'abc'
|
||||
assert_equal('ab', r.readpartial(2))
|
||||
assert_equal('c', r.readpartial(2))
|
||||
assert_raises(TimeoutError) {
|
||||
assert_raise(TimeoutError) {
|
||||
timeout(0.1) { r.readpartial(2) }
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ class TestReadPartial < Test::Unit::TestCase
|
|||
assert_equal("de", r.readpartial(2))
|
||||
assert_equal("f\n", r.readpartial(4096))
|
||||
assert_equal("ghi\n", r.readpartial(4096))
|
||||
assert_raises(TimeoutError) {
|
||||
assert_raise(TimeoutError) {
|
||||
timeout(0.1) { r.readpartial(2) }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue