mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[ruby/json] Update JSONInRactorTest
to handle Ruby 3.5 Ractors.
d42b36963d
This commit is contained in:
parent
267d8a04b3
commit
d609a23115
1 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue