From: Marc-Andre Lafortune Date: 2012-02-23T05:32:10+09:00 Subject: [ruby-core:42811] [ruby-trunk - Bug #6062][Closed] test/yaml/test_yaml.rb tries to use Test::Unit::TestSuite to run Issue #6062 has been updated by Marc-Andre Lafortune. Status changed from Open to Closed ---------------------------------------- Bug #6062: test/yaml/test_yaml.rb tries to use Test::Unit::TestSuite to run https://bugs.ruby-lang.org/issues/6062 Author: Charles Nutter Status: Closed Priority: Normal Assignee: Category: Target version: ruby -v: trunk This block of code appears at the bottom of test/yaml/test_yaml.rb, for running the file directly. It prevents running the file directly, since Test::Unit::TestSuite no longer exists. Logic in minitest/testunit will run the test anyway without this block, so it should be removed. Please backport to 1.9.3 branch as well. if $0 == __FILE__ suite = Test::Unit::TestSuite.new('YAML') ObjectSpace.each_object(Class) do |klass| suite << klass.suite if (Test::Unit::TestCase > klass) end require 'test/unit/ui/console/testrunner' Test::Unit::UI::Console::TestRunner.run(suite).passed? end -- http://bugs.ruby-lang.org/