mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +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
|
def test_ractor_shareable
|
||||||
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
|
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
|
||||||
|
class Ractor
|
||||||
|
alias value take
|
||||||
|
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
|
||||||
|
|
||||||
begin;
|
begin;
|
||||||
$VERBOSE = nil
|
$VERBOSE = nil
|
||||||
require "pathname"
|
require "pathname"
|
||||||
|
@ -19,4 +23,3 @@ class TestPathnameRactor < Test::Unit::TestCase
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue