summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-21 12:33:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-21 12:33:44 +0000
commit8932916c81e367ee5b06fb697c3f1c6561bf2bc3 (patch)
treec3430184974505052ead450a5b7d4eb8135a0534 /lib
parente502448b1307e0285ddd729e404378f3d270532f (diff)
downloadruby-8932916c81e367ee5b06fb697c3f1c6561bf2bc3.tar.gz
ruby-8932916c81e367ee5b06fb697c3f1c6561bf2bc3.tar.xz
ruby-8932916c81e367ee5b06fb697c3f1c6561bf2bc3.zip
* lib/test/unit.rb (assert_nothing_raised): raise with backtrace.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/test/unit.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index 57ae020b2..c4c3724cd 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -82,9 +82,7 @@ module Test
if ((args.empty? && !e.instance_of?(MiniTest::Assertion)) ||
args.any? {|a| a.instance_of?(Module) ? e.is_a?(a) : e.class == a })
msg = message(msg) { "Exception raised:\n<#{mu_pp(e)}>" }
- exc = MiniTest::Assertion.new(msg.call)
- exc.set_backtrace(e.backtrace)
- raise exc
+ raise MiniTest::Assertion, msg.call, e.backtrace
else
raise
end