diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-06-04 14:07:26 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-06-04 14:08:04 +0900 |
commit | 04b26db5ef999b1afd94cadb819dbc6b2b6e9da9 () | |
tree | eb7a3495f473cfe9f171f0dcd9c2bb31965d59d5 /tool/lib/core_assertions.rb | |
parent | 50400f3bb27070c028d9c4b3bde8efe44eba6efd (diff) |
Support Ractor#value and Ractor#join for old versions of Ruby
https://.com/ruby/test-unit-ruby-core/pull/9 https://.com/ruby/test-unit-ruby-core/pull/10
-rw-r--r-- | tool/lib/core_assertions.rb | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -371,6 +371,10 @@ eom def assert_ractor(src, args: [], require: nil, require_relative: nil, file: nil, line: nil, ignore_stderr: nil, **opt) return unless defined?(Ractor) require = "require #{require.inspect}" if require if require_relative dir = File.dirname(caller_locations[0,1][0].absolute_path) @@ -379,6 +383,8 @@ eom end assert_separately(args, file, line, <<~RUBY, ignore_stderr: ignore_stderr, **opt) #{require} previous_verbose = $VERBOSE $VERBOSE = nil |