diff options
| author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-23 02:12:10 +0000 |
|---|---|---|
| committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-23 02:12:10 +0000 |
| commit | a034a09b2216e4b96c50fcce75e5a7d23eb868a7 (patch) | |
| tree | fa450bd66ba894caf8733d1c9051a1b97135610c /test | |
| parent | 59c8df83cb6c63a5e6947e46e88b4b8844019d16 (diff) | |
| download | ruby-a034a09b2216e4b96c50fcce75e5a7d23eb868a7.tar.gz ruby-a034a09b2216e4b96c50fcce75e5a7d23eb868a7.tar.xz ruby-a034a09b2216e4b96c50fcce75e5a7d23eb868a7.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@5255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -rw-r--r-- | test/xsd/test_noencoding.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/xsd/test_noencoding.rb b/test/xsd/test_noencoding.rb index 0f2daae05..f4a2232fa 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 |
