diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-04 13:55:24 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-04 13:55:24 +0000 |
commit | 0562c4f76d89cfc9d7c95d077fa62652bbe54664 (patch) | |
tree | abdd3147214bf536da428ba87319aec50c6ef594 /test/ruby/test_exception.rb | |
parent | de1f3c92e701cdb2752f5079107ad65512e1b43b (diff) | |
download | ruby-0562c4f76d89cfc9d7c95d077fa62652bbe54664.tar.gz |
* test/ruby: get rid of warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index aabe1464b1..f3afd674ab 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -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 |