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
This commit is contained in:
parent
b1e052d080
commit
3a6bcb63d8
@ -1,6 +1,5 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require 'pathname'
|
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
require_relative 'envutil'
|
require_relative 'envutil'
|
||||||
require 'rbconfig'
|
require 'rbconfig'
|
||||||
@ -28,7 +27,7 @@ class TestProcess < Test::Unit::TestCase
|
|||||||
|
|
||||||
def with_tmpchdir
|
def with_tmpchdir
|
||||||
Dir.mktmpdir {|d|
|
Dir.mktmpdir {|d|
|
||||||
d = Pathname.new(d).realpath.to_s
|
d = File.realpath(d)
|
||||||
Dir.chdir(d) {
|
Dir.chdir(d) {
|
||||||
yield d
|
yield d
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user