Skip to content

Commit

Permalink
Don't use ensure to fix crash of mruby-eval test.
Browse files Browse the repository at this point in the history
  • Loading branch information
take-cheeze committed Mar 26, 2014
1 parent f700346 commit 813ba50
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/assert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ def assert(str = 'Assertion failed', iso = '')
$asserts.push(assertion_string('Error: ', str, iso, e))
$kill_test += 1
t_print('X')
end
end
ensure
$mrbtest_assert = nil
end
$mrbtest_assert = nil
t_print("\n") if $mrbtest_verbose
end

Expand Down

0 comments on commit 813ba50

Please sign in to comment.