summaryrefslogtreecommitdiff
path: root/test/date/test_date_parse.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-10-18 11:56:05 -0700
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-10-24 18:39:04 +0900
commit2e37c1960a0b84a9018dc0202a36daf4e692ed46 (patch)
tree48b61db0bc1e93efcf59daa41797e7fbe1a07693 /test/date/test_date_parse.rb
parentfc0e8d00bc50ac8646b37adee3b599c83ce84a41 (diff)
downloadruby-2e37c1960a0b84a9018dc0202a36daf4e692ed46.tar.gz
[ruby/date] Remove taint support
Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous versions. https://github.com/ruby/date/commit/519470dc3b
Diffstat (limited to 'test/date/test_date_parse.rb')
-rw-r--r--test/date/test_date_parse.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/date/test_date_parse.rb b/test/date/test_date_parse.rb
index dda952b8ce..26c61eb3d5 100644
--- a/test/date/test_date_parse.rb
+++ b/test/date/test_date_parse.rb
@@ -421,10 +421,9 @@ class TestDateParse < Test::Unit::TestCase
l = format('<failed at line %d>', l)
assert_equal(y, a, l)
if y[6]
- h = Date._parse(x[0].dup.taint, *x[1..-1])
+ h = Date._parse(x[0].dup, *x[1..-1])
assert_equal(y[6], h[:zone], l)
assert_equal(y[6].encoding, h[:zone].encoding, l)
- assert_predicate(h[:zone], :tainted?, l)
end
end
end