summaryrefslogtreecommitdiff
path: root/test/ruby/test_exception.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-26 18:07:12 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-26 23:28:54 +0900
commit39bc5de83394a380c9967df74e06c824186f8560 (patch)
tree7e65884740ac7eca54e50ebb9d2954f4bbc9671a /test/ruby/test_exception.rb
parent81c248924daf387118de5b37b16e08a937df73a3 (diff)
Remove tainted and trusted features
Already these had been announced to be removed in 3.2.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5348
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r--test/ruby/test_exception.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index 67f38c2e91..4a08829473 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -1075,18 +1075,6 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status|
assert_equal :deprecated, warning[0][1]
end
- def test_warn_deprecated_to_remove_backwards_compatibility_category
- warning = capture_warning_warn { Object.new.tainted? }
-
- assert_match(/deprecated/, warning[0])
- end
-
- def test_warn_deprecated_to_remove_category
- warning = capture_warning_warn(category: true) { Object.new.tainted? }
-
- assert_equal :deprecated, warning[0][1]
- end
-
def test_kernel_warn_uplevel
warning = capture_warning_warn {warn("test warning", uplevel: 0)}
assert_equal("#{__FILE__}:#{__LINE__-1}: warning: test warning\n", warning[0])