diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-29 05:19:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-29 05:19:49 +0000 |
commit | c5b0dc63de4f7ce8bb306857a5454fff3bfedab3 (patch) | |
tree | 424678732ce04b7db4a41d3a93fc78be66170a5a /test/pathname | |
parent | 123a1e3cc19c551b2c724f78b29dfd2fa3bd9fa9 (diff) |
test_pathname.rb: fix exception
* test/pathname/test_pathname.rb (has_symlink): now raises ENOENT
instead of TypeError when symlink is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/pathname')
-rw-r--r-- | test/pathname/test_pathname.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index 2917ebb557..daa32111bc 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -342,7 +342,7 @@ class TestPathname < Test::Unit::TestCase File.symlink("", "") rescue NotImplementedError, Errno::EACCES return false - rescue TypeError + rescue Errno::ENOENT end return true end |