mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
123a1e3cc1
commit
c5b0dc63de
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ class TestPathname < Test::Unit::TestCase
|
||||||
File.symlink("", "")
|
File.symlink("", "")
|
||||||
rescue NotImplementedError, Errno::EACCES
|
rescue NotImplementedError, Errno::EACCES
|
||||||
return false
|
return false
|
||||||
rescue TypeError
|
rescue Errno::ENOENT
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue