From 3a6bcb63d84632f82174b6f9ed37f386b2809f27 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 30 Jun 2013 01:23:35 +0000 Subject: test_process.rb: File.realpath directly * test/ruby/test_process.rb (with_tmpchdir): use File.realpath directly, no need to depend on pathname. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_process.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/ruby/test_process.rb') diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 32c12fcdc6..dfe91f2888 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1,6 +1,5 @@ require 'test/unit' require 'tempfile' -require 'pathname' require 'timeout' require_relative 'envutil' require 'rbconfig' @@ -28,7 +27,7 @@ class TestProcess < Test::Unit::TestCase def with_tmpchdir Dir.mktmpdir {|d| - d = Pathname.new(d).realpath.to_s + d = File.realpath(d) Dir.chdir(d) { yield d } -- cgit v1.2.3