[前][次][番号順一覧][スレッド一覧]

ruby-changes:36306

From: nobu <ko1@a...>
Date: Wed, 12 Nov 2014 08:07:10 +0900 (JST)
Subject: [ruby-changes:36306] nobu:r48387 (trunk): test_unicode_normalize.rb: skip if not found

nobu	2014-11-12 08:06:53 +0900 (Wed, 12 Nov 2014)

  New Revision: 48387

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48387

  Log:
    test_unicode_normalize.rb: skip if not found
    
    * test/test_unicode_normalize.rb (read_tests): do nothing if the
      test data file is not found.

  Modified files:
    trunk/test/test_unicode_normalize.rb
Index: test/test_unicode_normalize.rb
===================================================================
--- test/test_unicode_normalize.rb	(revision 48386)
+++ test/test_unicode_normalize.rb	(revision 48387)
@@ -21,6 +21,8 @@ class TestUnicodeNormalize < Test::Unit: https://github.com/ruby/ruby/blob/trunk/test/test_unicode_normalize.rb#L21
         code_string.split(/\s/).collect { |cp| cp.to_i(16) }.pack('U*')
       end + [line[1]+1])
     end
+  rescue Errno::ENOENT => e
+    skip e.message
   end
 
   def to_codepoints(string)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]