ruby-changes:65411
From: Nobuyoshi <ko1@a...>
Date: Mon, 8 Mar 2021 10:03:24 +0900 (JST)
Subject: [ruby-changes:65411] 0d29c3179c (master): [ruby/stringio] Include all modules included into Test::Unit::TestCase
https://git.ruby-lang.org/ruby.git/commit/?id=0d29c3179c From 0d29c3179c86a73206939ba637e4fdf2dd6eff9a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 7 Mar 2021 20:05:21 +0900 Subject: [ruby/stringio] Include all modules included into Test::Unit::TestCase Some methods are separated into modules in test-unit now. https://github.com/ruby/stringio/commit/d289848994 --- tool/lib/test/unit/core_assertions.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/lib/test/unit/core_assertions.rb b/tool/lib/test/unit/core_assertions.rb index c7762f0..ff78c2b 100644 --- a/tool/lib/test/unit/core_assertions.rb +++ b/tool/lib/test/unit/core_assertions.rb @@ -260,6 +260,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit/core_assertions.rb#L260 ABORT_SIGNALS = Signal.list.values_at(*%w"ILL ABRT BUS SEGV TERM") def separated_runner(out = nil) + include(*Test::Unit::TestCase.ancestors.select {|c| !c.is_a?(Class) }) out = out ? IO.new(out, 'w') : STDOUT at_exit { out.puts [Marshal.dump($!)].pack('m'), "assertions=\#{self._assertions}" -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/