mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Avoid to show warning message with unused variable.
This commit is contained in:
parent
7686e33ee4
commit
3c6e1a8cf9
1 changed files with 2 additions and 2 deletions
|
@ -162,8 +162,8 @@ class TestRequire < Test::Unit::TestCase
|
||||||
require(require_path)
|
require(require_path)
|
||||||
$".pop
|
$".pop
|
||||||
File.chmod(0777, File.dirname(require_path))
|
File.chmod(0777, File.dirname(require_path))
|
||||||
ospath = (require_path.encode('filesystem') rescue
|
require_path.encode('filesystem') rescue
|
||||||
require_path.encode(self.class.ospath_encoding(require_path)))
|
require_path.encode(self.class.ospath_encoding(require_path))
|
||||||
e = nil
|
e = nil
|
||||||
stderr = EnvUtil.verbose_warning do
|
stderr = EnvUtil.verbose_warning do
|
||||||
e = assert_raise(SecurityError) do
|
e = assert_raise(SecurityError) do
|
||||||
|
|
Loading…
Add table
Reference in a new issue