mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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
|
@ -71,7 +71,7 @@ class TestThread < Test::Unit::TestCase
|
|||
mutex = Mutex.new
|
||||
condvar = ConditionVariable.new
|
||||
|
||||
assert_raises(ThreadError) { condvar.wait(mutex) }
|
||||
assert_raise(ThreadError) { condvar.wait(mutex) }
|
||||
end
|
||||
|
||||
def test_condvar_wait_exception_handling
|
||||
|
@ -98,7 +98,7 @@ class TestThread < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
thread.raise Interrupt, "interrupt a dead condition variable"
|
||||
assert_raises(Interrupt) { thread.value }
|
||||
assert_raise(Interrupt) { thread.value }
|
||||
assert(locked)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue