1
0
Fork 0
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:
Hiroshi SHIBATA 2019-05-25 11:28:07 +09:00
parent 7686e33ee4
commit 3c6e1a8cf9
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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