diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-10-03 14:56:35 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-10-03 15:24:09 +0900 |
commit | 84fc1de5125a6f7c61609bf153f0359b3da55d8d (patch) | |
tree | f1609f39e536bcb5bf4b045efdd6b31e15f68c24 /tool | |
parent | 1c999952e74e9b5f1e882501580d5f2f5a92f142 (diff) |
use bind_call for test-all --gc-stress
This one allocation of Method object is worth avoiding. We don't
want to test UnboundMethod#bind right here. GC need not run.
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/test/unit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index 2d5a32ed67..928c896865 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -938,7 +938,7 @@ module Test define_method(:run) do |runner| begin gc_stress, GC.stress = GC.stress, true - oldrun.bind(self).call(runner) + oldrun.bind_call(self, runner) ensure GC.stress = gc_stress end |