[Ruby] explicitly rescue NameError (for ruby-1.6)

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@880 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Masaki Fukushima 2000-09-22 14:40:15 +00:00
commit 1df8221ca0

View file

@ -53,7 +53,7 @@ puts " Tring to set 'path'";
begin
Example.path = "Whoa!"
puts "Hey, what's going on?!?! This shouldn't work"
rescue
rescue NameError
puts "Good."
end
@ -61,7 +61,7 @@ puts " Trying to set 'status'";
begin
Example.status = 0
puts "Hey, what's going on?!?! This shouldn't work"
rescue
rescue NameError
puts "Good."
end