ruby-changes:60244
From: Koichi <ko1@a...>
Date: Sun, 1 Mar 2020 04:59:48 +0900 (JST)
Subject: [ruby-changes:60244] 356e032e1a (master): require enc/trans/single_byte in advance.
https://git.ruby-lang.org/ruby.git/commit/?id=356e032e1a From 356e032e1a622c9e34c1c48b516861db10b3b31b Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Sun, 1 Mar 2020 04:54:51 +0900 Subject: 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. diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index 000ae99..fa2f2ec 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -88,6 +88,7 @@ class TestRequire < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_require.rb#L88 end def prepare_require_path(dir, encoding) + require 'enc/trans/single_byte' Dir.mktmpdir {|tmp| begin require_path = File.join(tmp, dir, 'foo.rb').encode(encoding) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/