summaryrefslogtreecommitdiff
path: root/tool/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-07 20:05:21 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-03-08 09:35:46 +0900
commit0d29c3179c86a73206939ba637e4fdf2dd6eff9a (patch)
tree806fcf996412779247dcd4c661da720eaa4711d4 /tool/lib
parent21e255913c5d00426bcc4d69e3d444b45635a534 (diff)
[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
Diffstat (limited to 'tool/lib')
-rw-r--r--tool/lib/test/unit/core_assertions.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/lib/test/unit/core_assertions.rb b/tool/lib/test/unit/core_assertions.rb
index c7762f05ab..ff78c2bdfa 100644
--- a/tool/lib/test/unit/core_assertions.rb
+++ b/tool/lib/test/unit/core_assertions.rb
@@ -260,6 +260,7 @@ module Test
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}"