diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-26 00:05:20 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-26 00:05:20 +0000 |
commit | 0779f743d7394cde7ea9bdf3c19166c8a090c535 (patch) | |
tree | 890b926ad600a1cd1044e8041ffb90887fbceafe /test | |
parent | ad859f3125e408beb6a8fedf68cff59c469b150a (diff) | |
download | ruby-0779f743d7394cde7ea9bdf3c19166c8a090c535.tar.gz |
fix warning: shadowing outer local variable - path
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_require.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index 0351939216..78ddfab14a 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -74,12 +74,12 @@ class TestRequire < Test::Unit::TestCase assert_separately(%w[--disable=gems], <<-INPUT) # leave paths for require encoding objects bug = "#{bug8165} require #{encoding} path" - path = "#{require_path}" + require_path = "#{require_path}" enc_path = Regexp.new(Regexp.escape(RUBY_PLATFORM)) $:.replace([IO::NULL] + $:.reject {|path| enc_path !~ path}) assert_nothing_raised(LoadError, bug) { - assert(require(path), bug) - assert(!require(path), bug) + assert(require(require_path), bug) + assert(!require(require_path), bug) } INPUT } |