ruby-changes:29647
From: nobu <ko1@a...>
Date: Sun, 30 Jun 2013 10:23:45 +0900 (JST)
Subject: [ruby-changes:29647] nobu:r41699 (trunk): test_process.rb: File.realpath directly
nobu 2013-06-30 10:23:35 +0900 (Sun, 30 Jun 2013) New Revision: 41699 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41699 Log: test_process.rb: File.realpath directly * test/ruby/test_process.rb (with_tmpchdir): use File.realpath directly, no need to depend on pathname. Modified files: trunk/test/ruby/test_process.rb Index: test/ruby/test_process.rb =================================================================== --- test/ruby/test_process.rb (revision 41698) +++ test/ruby/test_process.rb (revision 41699) @@ -1,6 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1 require 'test/unit' require 'tempfile' -require 'pathname' require 'timeout' require_relative 'envutil' require 'rbconfig' @@ -28,7 +27,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L27 def with_tmpchdir Dir.mktmpdir {|d| - d = Pathname.new(d).realpath.to_s + d = File.realpath(d) Dir.chdir(d) { yield d } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/