diff options
Diffstat (limited to 'test/xsd/test_noencoding.rb')
-rw-r--r-- | test/xsd/test_noencoding.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/xsd/test_noencoding.rb b/test/xsd/test_noencoding.rb index f4a2232faa..48119ec1f7 100644 --- a/test/xsd/test_noencoding.rb +++ b/test/xsd/test_noencoding.rb @@ -13,6 +13,12 @@ class TestEmptyCharset < Test::Unit::TestCase def test_wsdl begin xml = WSDL::XMLSchema::Parser.new.parse(File.open(@file) { |f| f.read }) + rescue RuntimeError + if XSD::XMLParser.const_defined?("REXMLParser") + STDERR.puts("rexml cannot handle euc-jp without iconv/uconv.") + return + end + raise rescue Errno::EINVAL # unsupported encoding return |