[ruby/json] Update JSONInRactorTest
to handle Ruby 3.5 Ractors.
https://github.com/ruby/json/commit/d42b36963d
This commit is contained in:
parent
267d8a04b3
commit
d609a23115
@ -8,6 +8,16 @@ rescue LoadError
|
||||
end
|
||||
|
||||
class JSONInRactorTest < Test::Unit::TestCase
|
||||
unless Ractor.method_defined?(:value)
|
||||
module RactorBackport
|
||||
refine Ractor do
|
||||
alias_method :value, :take
|
||||
end
|
||||
end
|
||||
|
||||
using RactorBackport
|
||||
end
|
||||
|
||||
def test_generate
|
||||
pid = fork do
|
||||
r = Ractor.new do
|
||||
|
Loading…
x
Reference in New Issue
Block a user