From c5b0dc63de4f7ce8bb306857a5454fff3bfedab3 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 29 Aug 2015 05:19:49 +0000 Subject: 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 --- test/pathname/test_pathname.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/pathname') 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 -- cgit v1.2.1