diff options
Diffstat (limited to 'test/ruby/test_require.rb')
-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 |