From 39bc5de83394a380c9967df74e06c824186f8560 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 26 Dec 2021 18:07:12 +0900 Subject: Remove tainted and trusted features Already these had been announced to be removed in 3.2. --- test/ruby/test_exception.rb | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'test/ruby/test_exception.rb') 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]) -- cgit v1.2.3