From 53ebcbf733d3eaeca1fb7a49d5621054917951c7 Mon Sep 17 00:00:00 2001 From: nahi Date: Tue, 23 Dec 2003 02:12:10 +0000 Subject: * test/xsd/test_noencoding.rb: rescue Errno::EINVAL and do not test. "euc-jp" might not be in supported encoding name list. [ruby-talk:88650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/xsd/test_noencoding.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/xsd') diff --git a/test/xsd/test_noencoding.rb b/test/xsd/test_noencoding.rb index 0f2daae05f..f4a2232faa 100644 --- a/test/xsd/test_noencoding.rb +++ b/test/xsd/test_noencoding.rb @@ -11,7 +11,12 @@ class TestEmptyCharset < Test::Unit::TestCase end def test_wsdl - xml = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read }) + begin + xml = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read }) + rescue Errno::EINVAL + # unsupported encoding + return + end assert_equal(WSDL::XMLSchema::Schema, xml.class) assert_equal(0, xml.collect_elements.size) end -- cgit v1.2.3