mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
require enc/trans/single_byte in advance.
enc/trans/single_byte is needed to run some tests, however it will fail to require because $: is empty.
This commit is contained in:
parent
a70aa5998c
commit
356e032e1a
1 changed files with 1 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ class TestRequire < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def prepare_require_path(dir, encoding)
|
def prepare_require_path(dir, encoding)
|
||||||
|
require 'enc/trans/single_byte'
|
||||||
Dir.mktmpdir {|tmp|
|
Dir.mktmpdir {|tmp|
|
||||||
begin
|
begin
|
||||||
require_path = File.join(tmp, dir, 'foo.rb').encode(encoding)
|
require_path = File.join(tmp, dir, 'foo.rb').encode(encoding)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue