зеркало из https://github.com/github/ruby.git
Removed unused variables
This commit is contained in:
Родитель
8d04f90da4
Коммит
5331932cd2
|
@ -41,7 +41,7 @@ class TestTracepointObj < Test::Unit::TestCase
|
||||||
GC.stat(stat2)
|
GC.stat(stat2)
|
||||||
GC.enable
|
GC.enable
|
||||||
|
|
||||||
newobj_count, free_count, gc_start_count, gc_end_mark_count, gc_end_sweep_count, *newobjs = *result
|
newobj_count, free_count, gc_start_count, gc_end_mark_count, gc_end_sweep_count, = *result
|
||||||
|
|
||||||
assert_operator stat2[:total_allocated_objects] - stat1[:total_allocated_objects], :>=, newobj_count
|
assert_operator stat2[:total_allocated_objects] - stat1[:total_allocated_objects], :>=, newobj_count
|
||||||
assert_operator 1_000_000, :<=, newobj_count
|
assert_operator 1_000_000, :<=, newobj_count
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
begin
|
begin
|
||||||
require 'ripper'
|
require 'ripper'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
ripper_test = true
|
|
||||||
module TestRipper; end
|
module TestRipper; end
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче