diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-06-04 14:36:22 +0900 |
---|---|---|
committer | git <[email protected]> | 2025-06-04 05:51:19 +0000 |
commit | 6b7e3395a4ab69f5eaefb983243a8e4cad7f8abf (patch) | |
tree | 9f0f58f4b99ff75878b2d9e3e6b37105fbf23306 /test | |
parent | a88ff325594d97821ef06db609c6b500b707e295 (diff) |
[ruby/psych] Revert "Alias value or join to take in old Ruby"
This reverts commit https://github.com/ruby/psych/commit/1a4d383efe0b.
https://github.com/ruby/psych/commit/2f51c02280
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_ractor.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/psych/test_ractor.rb b/test/psych/test_ractor.rb index 7821eed155..f1c8327aa3 100644 --- a/test/psych/test_ractor.rb +++ b/test/psych/test_ractor.rb @@ -4,10 +4,6 @@ require_relative 'helper' class TestPsychRactor < Test::Unit::TestCase def test_ractor_round_trip assert_ractor(<<~RUBY, require_relative: 'helper') - class Ractor - alias value take - end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders - obj = {foo: [42]} obj2 = Ractor.new(obj) do |obj| Psych.unsafe_load(Psych.dump(obj)) @@ -32,10 +28,6 @@ class TestPsychRactor < Test::Unit::TestCase # Test is to make sure it works, even though usage is probably very low. # The methods are not documented and might be deprecated one day assert_ractor(<<~RUBY, require_relative: 'helper') - class Ractor - alias value take - end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders - r = Ractor.new do Psych.add_builtin_type 'omap' do |type, val| val * 2 @@ -49,10 +41,6 @@ class TestPsychRactor < Test::Unit::TestCase def test_ractor_constants assert_ractor(<<~RUBY, require_relative: 'helper') - class Ractor - alias value take - end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders - r = Ractor.new do Psych.libyaml_version.join('.') == Psych::LIBYAML_VERSION end.value |