summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/t/localjumperror.rb7
-rw-r--r--test/t/runtimeerror.rb10
2 files changed, 7 insertions, 10 deletions
diff --git a/test/t/localjumperror.rb b/test/t/localjumperror.rb
index 9d1df9594..ebcec0670 100644
--- a/test/t/localjumperror.rb
+++ b/test/t/localjumperror.rb
@@ -2,7 +2,12 @@
# LocalJumpError ISO Test
assert('LocalJumoError', '15.2.25') do
- LocalJumpError.class == Class
+ begin
+ # this will cause an exception due to the wrong location
+ retry
+ rescue => e1
+ end
+ LocalJumpError.class == Class and e1.class == LocalJumpError
end
# TODO 15.2.25.2.1 LocalJumpError#exit_value
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