From f805db3c4129b8be49b83ad0397ea47a3be73e46 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 25 Nov 2025 17:48:10 +0900 Subject: [PATCH] Revert "assert_separately: Suppress experimental warnings" This reverts commit c2dd855a0f0166815e0e7cac71d11bdfd6d3c242. test-unit 3.7.2 squashes the warnings. --- lib/core_assertions.rb | 2 -- test-unit-ruby-core.gemspec | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/core_assertions.rb b/lib/core_assertions.rb index 5d4c733..6570af5 100644 --- a/lib/core_assertions.rb +++ b/lib/core_assertions.rb @@ -339,8 +339,6 @@ def assert_separately(args, file = nil, line = nil, src, ignore_stderr: nil, **o args = args.dup args.insert((Hash === args.first ? 1 : 0), "-w", "--disable=gems", *$:.map {|l| "-I#{l}"}) args << "--debug" if RUBY_ENGINE == 'jruby' # warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag - # power_assert 3 requires ruby 3.1 or later - args << "-W:no-experimental" if RUBY_VERSION < "3.1." stdout, stderr, status = EnvUtil.invoke_ruby(args, src, capture_stdout, true, **opt) if sanitizers&.lsan_enabled? diff --git a/test-unit-ruby-core.gemspec b/test-unit-ruby-core.gemspec index 438d90d..e81556b 100644 --- a/test-unit-ruby-core.gemspec +++ b/test-unit-ruby-core.gemspec @@ -23,5 +23,5 @@ Gem::Specification.new do |spec| ] spec.require_paths = ["lib"] - spec.add_runtime_dependency("test-unit") + spec.add_runtime_dependency("test-unit", ">= 3.7.2") end