summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-30 01:23:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-30 01:23:35 +0000
commit3a6bcb63d84632f82174b6f9ed37f386b2809f27 (patch)
tree8326a0b37798bb4876348ab13368a1d7706802c6 /test/ruby
parentb1e052d0805b97c83fd0ff04580d4c5d555613c7 (diff)
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
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_process.rb3
1 files changed, 1 insertions, 2 deletions
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
}