summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-26 00:05:20 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-26 00:05:20 +0000
commit0779f743d7394cde7ea9bdf3c19166c8a090c535 (patch)
tree890b926ad600a1cd1044e8041ffb90887fbceafe /test
parentad859f3125e408beb6a8fedf68cff59c469b150a (diff)
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.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb
index 03519392161..78ddfab14a6 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
}