diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-17 12:19:49 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-17 15:12:46 +0900 |
commit | 06fcf88d695c8bfb6703966dd26629642ff7bf2d (patch) | |
tree | 960a4455058568d3f809c9b2979a1fa061cfc1f1 /test/ruby/test_require.rb | |
parent | d8148650f6b5d7855845cfa0d53b363366b5c460 (diff) | |
download | ruby-06fcf88d695c8bfb6703966dd26629642ff7bf2d.tar.gz |
Use the original require for test_race_exception
The extension for require method with rubygems affects this test
case. We need to keep this test for the original method.
Diffstat (limited to 'test/ruby/test_require.rb')
-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 |