新井です。

別件で、rough の rubyunit で warning を抑止するパッチ。今は 
testunit の方を使うべきなんでしたっけ?

Index: lib/rubyunit/runit/testcase.rb
===================================================================
RCS file: /usr/local/cvsup/ruby/rough/lib/rubyunit/runit/testcase.rb,v
retrieving revision 1.16
diff -u -r1.16 testcase.rb
--- lib/rubyunit/runit/testcase.rb	23 Dec 2001 07:41:25 -0000	1.16
+++ lib/rubyunit/runit/testcase.rb	19 Jan 2003 20:27:36 -0000
@@ -50,9 +50,9 @@
       begin
         run_bare
       rescue AssertionFailedError
-        result.add_failure($@, $!, type)
+        result.add_failure($@, $!, self.class)
       rescue StandardError, ScriptError
-        result.add_error($@, $!, type)
+        result.add_error($@, $!, self.class)
       end
       result.end_test(self)
     end
Index: lib/rubyunit/runit/cui/testrunner.rb
===================================================================
RCS file: /usr/local/cvsup/ruby/rough/lib/rubyunit/runit/cui/testrunner.rb,v
retrieving revision 1.3
diff -u -r1.3 testrunner.rb
--- lib/rubyunit/runit/cui/testrunner.rb	25 Oct 2001 11:43:39 -0000	1.3
+++ lib/rubyunit/runit/cui/testrunner.rb	19 Jan 2003 21:18:09 -0000
@@ -78,7 +78,7 @@
       def print_failures(result)
         @io.puts "Failures: #{result.failure_size}" if result.failure_size > 0
         result.failures.each do |f|
-	  @io.print f.at[0], ": ", f.err, " (", f.err.type, ")\n"
+	  @io.print f.at[0], ": ", f.err, " (", f.err.class, ")\n"
 	  for at in f.at[1..-1]
 	    @io.print "\tfrom ", at, "\n"
 	  end
@@ -88,7 +88,7 @@
       def print_errors(result)
         @io.puts "Errors: #{result.error_size}" if result.error_size > 0
         result.errors.each do |e|
-	  @io.print e.at[0], ": ", e.err, " (", e.err.type, ")\n"
+	  @io.print e.at[0], ": ", e.err, " (", e.err.class, ")\n"
 	  for at in e.at[1..-1]
 	    @io.print "\tfrom ", at, "\n"
 	  end

--
新井康司 (Koji Arai)