Skip to content

Commit 6b7e339

Browse files
hsbtmatzbot
authored andcommitted
[ruby/psych] Revert "Alias value or join to take in old Ruby"
This reverts commit ruby/psych@1a4d383efe0b. ruby/psych@2f51c02280
1 parent a88ff32 commit 6b7e339

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

test/psych/test_ractor.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
class TestPsychRactor < Test::Unit::TestCase
55
def test_ractor_round_trip
66
assert_ractor(<<~RUBY, require_relative: 'helper')
7-
class Ractor
8-
alias value take
9-
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
10-
117
obj = {foo: [42]}
128
obj2 = Ractor.new(obj) do |obj|
139
Psych.unsafe_load(Psych.dump(obj))
@@ -32,10 +28,6 @@ def test_ractor_config
3228
# Test is to make sure it works, even though usage is probably very low.
3329
# The methods are not documented and might be deprecated one day
3430
assert_ractor(<<~RUBY, require_relative: 'helper')
35-
class Ractor
36-
alias value take
37-
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
38-
3931
r = Ractor.new do
4032
Psych.add_builtin_type 'omap' do |type, val|
4133
val * 2
@@ -49,10 +41,6 @@ class Ractor
4941

5042
def test_ractor_constants
5143
assert_ractor(<<~RUBY, require_relative: 'helper')
52-
class Ractor
53-
alias value take
54-
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
55-
5644
r = Ractor.new do
5745
Psych.libyaml_version.join('.') == Psych::LIBYAML_VERSION
5846
end.value

0 commit comments

Comments
 (0)