fix matching
* bootstraptest/test_thread.rb: String#=~ does not accept String. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
19737494b9
commit
1dcc985092
@ -22,7 +22,7 @@ begin
|
|||||||
}
|
}
|
||||||
v == 20100 ? :ok : v
|
v == 20100 ? :ok : v
|
||||||
rescue ThreadError => e
|
rescue ThreadError => e
|
||||||
:ok if e.message =~ "can't create Thread"
|
:ok if /can't create Thread/ =~ e.message
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
assert_equal %q{5000}, %q{
|
assert_equal %q{5000}, %q{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user