summaryrefslogtreecommitdiffhomepage
path: root/test/t/runtimeerror.rb
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-10-20 03:59:13 +0900
committerYukihiro Matsumoto <[email protected]>2012-10-20 03:59:13 +0900
commit89a18e4f22de80b836f9d6c3167d71b7078a31bb (patch)
treee16221399143312f3974d48d269c9bcc300195ce /test/t/runtimeerror.rb
parent9bb6f0b3314d438e93ec79ae763ac57a559284bc (diff)
downloadmruby-89a18e4f22de80b836f9d6c3167d71b7078a31bb.tar.gz
mruby-89a18e4f22de80b836f9d6c3167d71b7078a31bb.zip
unexpect break/next/redo/retry should raise LocalJumpError
Diffstat (limited to 'test/t/runtimeerror.rb')
-rw-r--r--test/t/runtimeerror.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/t/runtimeerror.rb b/test/t/runtimeerror.rb
index 9157293cd..3e0636186 100644
--- a/test/t/runtimeerror.rb
+++ b/test/t/runtimeerror.rb
@@ -2,13 +2,5 @@
# RuntimeError ISO Test
assert('RuntimeError', '15.2.28') do
- e2 = nil
- begin
- # this will cause an exception due to the wrong location
- retry
- rescue => e1
- e2 = e1
- end
-
- RuntimeError.class == Class and e2.class == RuntimeError
+ RuntimeError.class == Class
end