diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-05-25 11:28:07 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-05-25 11:28:07 +0900 |
commit | 3c6e1a8cf911d312edeb9dfcc9153be68867ca4f (patch) | |
tree | 85cb5485c8bae7bfa9de1b4fc94e4cd0fa6bd0b8 | |
parent | 7686e33ee453d43210afcf90fef8fc613dede31c (diff) | |
download | ruby-3c6e1a8cf911d312edeb9dfcc9153be68867ca4f.tar.gz |
Avoid to show warning message with unused variable.
-rw-r--r-- | test/ruby/test_require.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index a83509421d..f7cbc76a6e 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -162,8 +162,8 @@ class TestRequire < Test::Unit::TestCase require(require_path) $".pop File.chmod(0777, File.dirname(require_path)) - ospath = (require_path.encode('filesystem') rescue - require_path.encode(self.class.ospath_encoding(require_path))) + require_path.encode('filesystem') rescue + require_path.encode(self.class.ospath_encoding(require_path)) e = nil stderr = EnvUtil.verbose_warning do e = assert_raise(SecurityError) do |