summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-10-18 11:44:47 -0700
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-11-12 11:16:07 +0900
commitb38b26c62dc12da1d4fcee39de0c0cad598f5995 (patch)
tree71678da2fdb77b523fc0fc34397588b743ab3eaa /test
parentdb33ab470cb4765f1b54384b51850e0db80f5aad (diff)
[ruby/bigdecimal] Remove taint checking
This removes the taint checking. Taint support is deprecated in Ruby 2.7 and has no effect. I don't think removing the taint checks in earlier ruby versions will cause any problems. https://github.com/ruby/bigdecimal/commit/1918d466f3
Diffstat (limited to 'test')
-rw-r--r--test/bigdecimal/test_bigdecimal.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb
index f6ef88e3f5..dff390b0cc 100644
--- a/test/bigdecimal/test_bigdecimal.rb
+++ b/test/bigdecimal/test_bigdecimal.rb
@@ -155,15 +155,6 @@ class TestBigDecimal < Test::Unit::TestCase
end
end
- def test_BigDecimal_with_tainted_string
- Thread.new {
- $SAFE = 1
- BigDecimal('1'.taint)
- }.join
- ensure
- $SAFE = 0
- end
-
def test_BigDecimal_with_exception_keyword
assert_raise(ArgumentError) {
BigDecimal('.', exception: true)