mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* test/ruby: get rid of warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
de1f3c92e7
commit
0562c4f76d
7 changed files with 17 additions and 18 deletions
|
@ -523,9 +523,9 @@ end.join
|
|||
assert_equal(false, s.tainted?)
|
||||
end
|
||||
|
||||
def m;
|
||||
m &->{return 0};
|
||||
42;
|
||||
def m
|
||||
m(&->{return 0})
|
||||
42
|
||||
end
|
||||
|
||||
def test_stackoverflow
|
||||
|
@ -573,7 +573,6 @@ end.join
|
|||
|
||||
def test_cause_reraised
|
||||
msg = "[Feature #8257]"
|
||||
cause = nil
|
||||
e = assert_raise(RuntimeError) {
|
||||
begin
|
||||
raise msg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue