[ruby/date] Removed workaround for assert_ractor
https://github.com/ruby/date/commit/700e44ef54
This commit is contained in:
parent
803526786a
commit
ac1dfee44a
@ -5,10 +5,6 @@ require 'date'
|
||||
class TestDateParseRactor < Test::Unit::TestCase
|
||||
def code(klass = Date, share: false)
|
||||
<<~RUBY.gsub('Date', klass.name)
|
||||
class Ractor
|
||||
alias value take
|
||||
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
|
||||
|
||||
share = #{share}
|
||||
d = Date.parse('Aug 23:55')
|
||||
Ractor.make_shareable(d) if share
|
||||
|
Loading…
x
Reference in New Issue
Block a user