[ruby/time] Removed workaround for assert_ractor
https://github.com/ruby/time/commit/337410e971
This commit is contained in:
parent
04b26db5ef
commit
803526786a
@ -74,9 +74,6 @@ class TestTimeExtension < Test::Unit::TestCase # :nodoc:
|
|||||||
if defined?(Ractor)
|
if defined?(Ractor)
|
||||||
def test_rfc2822_ractor
|
def test_rfc2822_ractor
|
||||||
assert_ractor(<<~RUBY, require: 'time')
|
assert_ractor(<<~RUBY, require: 'time')
|
||||||
class Ractor
|
|
||||||
alias value take unless method_defined? :value # compat with Ruby 3.4 and olders
|
|
||||||
end
|
|
||||||
actual = Ractor.new { Time.rfc2822("Fri, 21 Nov 1997 09:55:06 -0600") }.value
|
actual = Ractor.new { Time.rfc2822("Fri, 21 Nov 1997 09:55:06 -0600") }.value
|
||||||
assert_equal(Time.utc(1997, 11, 21, 9, 55, 6) + 6 * 3600, actual)
|
assert_equal(Time.utc(1997, 11, 21, 9, 55, 6) + 6 * 3600, actual)
|
||||||
RUBY
|
RUBY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user