diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_require.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index 6c4b97d08d..f96155a0b1 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -552,7 +552,7 @@ class TestRequire < Test::Unit::TestCase t1 = Thread.new do Thread.pass until start begin - require(path) + Kernel.send(:require, path) rescue RuntimeError end @@ -561,7 +561,7 @@ class TestRequire < Test::Unit::TestCase t2 = Thread.new do Thread.pass until scratch[0] - t2_res = require(path) + t2_res = Kernel.send(:require, path) end t1[:scratch] = t2[:scratch] = scratch |