ruby-changes:34371
From: nobu <ko1@a...>
Date: Tue, 17 Jun 2014 04:51:55 +0900 (JST)
Subject: [ruby-changes:34371] nobu:r46452 (trunk): runner.rb: instance variable
nobu 2014-06-17 04:51:38 +0900 (Tue, 17 Jun 2014) New Revision: 46452 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46452 Log: runner.rb: instance variable * test/runner.rb (before_setup, after_teardown): use an instance variable instead of a class variable. Modified files: trunk/test/runner.rb Index: test/runner.rb =================================================================== --- test/runner.rb (revision 46451) +++ test/runner.rb (revision 46452) @@ -21,7 +21,7 @@ module Test::Unit https://github.com/ruby/ruby/blob/trunk/test/runner.rb#L21 module ZombieHunter def before_setup - @@tracepoint_captured_stat = TracePoint.stat.map{|k, (activated, deleted)| [k, activated]} + @tracepoint_captured_stat = TracePoint.stat.map{|k, (activated, deleted)| [k, activated]} end def after_teardown @@ -30,7 +30,7 @@ module Test::Unit https://github.com/ruby/ruby/blob/trunk/test/runner.rb#L30 # detect zombie traces. assert_equal( - @@tracepoint_captured_stat, + @tracepoint_captured_stat, TracePoint.stat.map{|k, (activated, deleted)| [k, activated]}, "The number of active trace events was changed" ) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/