Skip to content

Commit c53ddda

Browse files
committed
Fix for rubies older than 2.7
1 parent cf868e0 commit c53ddda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/core_assertions.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def assert_separately(args, file = nil, line = nil, src, ignore_stderr: nil, **o
365365
args.insert((Hash === args.first ? 1 : 0), "-w", "--disable=gems", *$:.map {|l| "-I#{l}"})
366366
args << "--debug" if RUBY_ENGINE == 'jruby' # warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
367367
# power_assert 3 requires ruby 3.1 or later
368-
args << "-W:no-experimental" if RUBY_VERSION < "3.1."
368+
args << "-W:no-experimental" if ("2.7."..."3.1.").cover?(RUBY_VERSION)
369369
stdout, stderr, status = EnvUtil.invoke_ruby(args, src, capture_stdout, true, **opt)
370370

371371
if sanitizers&.lsan_enabled?

0 commit comments

Comments
 (0)