test_unicode_normalize.rb: skip only once

* test/test_unicode_normalize.rb (setup): skip only once, and
  silently ignore other tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-11-11 23:54:45 +00:00
Родитель 16d2f2803f
Коммит 9efb9195e0
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -21,8 +21,6 @@ class TestUnicodeNormalize < Test::Unit::TestCase
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)
@ -31,6 +29,9 @@ class TestUnicodeNormalize < Test::Unit::TestCase
def setup
@@tests ||= read_tests
rescue Errno::ENOENT => e
@@tests ||= []
skip e.message
end
def self.generate_test_normalize(target, normalization, source, prechecked)