Project

General

Profile

Actions

Bug #6062

closed

test/yaml/test_yaml.rb tries to use Test::Unit::TestSuite to run

Bug #6062: test/yaml/test_yaml.rb tries to use Test::Unit::TestSuite to run

Added by headius (Charles Nutter) over 13 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
trunk
Backport:
[ruby-core:42806]

Description

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

Updated by headius (Charles Nutter) over 13 years ago Actions #1 [ruby-core:42810]

Sorry, it looks like this file is old, probably from 1.9.1 timeframe. Got included in our local suite and never removed. Disregard.

Updated by marcandre (Marc-Andre Lafortune) over 13 years ago Actions #2 [ruby-core:42811]

  • Status changed from Open to Closed
Actions

Also available in: PDF Atom