mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
a79e9ab390
commit
8ab4935ddf
1 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,10 @@ class TestPathnameRactor < Test::Unit::TestCase
|
|||
|
||||
def test_ractor_shareable
|
||||
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
|
||||
class Ractor
|
||||
alias value take
|
||||
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
|
||||
|
||||
begin;
|
||||
$VERBOSE = nil
|
||||
require "pathname"
|
||||
|
@ -19,4 +23,3 @@ class TestPathnameRactor < Test::Unit::TestCase
|
|||
end;
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue