summaryrefslogtreecommitdiff
path: root/test/ruby/test_exception.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2022-09-03 15:47:49 +0200
committerBenoit Daloze <eregontp@gmail.com>2022-09-10 13:14:18 +0200
commit92b907d12d6de6f74f1efa6d8cd4fed8fa50763e (patch)
tree43b4bd3af6b38695a2c8c8051f215cd16459b9e1 /test/ruby/test_exception.rb
parent5e39b3b844d5601541deb7cb0648d88cc6fdc080 (diff)
Enable deprecation warnings for test-all
* So deprecated methods/constants/functions are dealt with early, instead of many tests breaking suddenly when removing a deprecated method/constant/function. * Follows https://bugs.ruby-lang.org/issues/17591
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6321
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r--test/ruby/test_exception.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index 0b05ff7c51..f041067137 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -1053,7 +1053,7 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status|
warning << [str, category]
end
else
- define_method(:warn) do |str|
+ define_method(:warn) do |str, category: nil|
warning << str
end
end