[#11073] segfault printing instruction sequence for iterator — <noreply@...>

Bugs item #10527, was opened at 2007-05-02 14:42

14 messages 2007/05/02
[#11142] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Nobuyoshi Nakada <nobu@...> 2007/05/10

Hi,

[#11188] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Paul Brannan <pbrannan@...> 2007/05/16

On Thu, May 10, 2007 at 04:51:18PM +0900, Nobuyoshi Nakada wrote:

[#11234] Planning to release 1.8.6 errata — Urabe Shyouhei <shyouhei@...>

Hi all.

17 messages 2007/05/25

[ ruby-Patches-5748 ] (test/unit) assert_raise without parameters should check if any exception is being raised

From: <noreply@...>
Date: 2007-05-30 04:16:06 UTC
List: ruby-core #11355
Patches item #5748, was opened at 2006-09-13 12:34
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1700&aid=5748&group_id=426

Category: Developer Tools/Libs
Group: v1.8.x
Status: Open
Resolution: None
Priority: 3
Submitted By: Esad Hajdarevic (esad)
Assigned to: Nobody (None)
Summary: (test/unit) assert_raise without parameters should check if any exception is being raised

Initial Comment:
Here's the patch for a behaviour similar to one discussed here:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/183201

Basically, if assert_raise is called without parameters, it should pass if the block raises any exception. Currently the following will not pass:


require 'test/unit'
include Test::Unit::Assertions
assert_raise(RuntimeError) {raise}

returning a somewhat cryptic error message:

Test::Unit::AssertionFailedError: <[]> exception expected but was...


----------------------------------------------------------------------

Comment By: Esad Hajdarevic (esad)
Date: 2006-09-13 12:37

Message:
Sorry, the snippet should go like this:

require 'test/unit'
include Test::Unit::Assertions
assert_raise {raise}

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1700&aid=5748&group_id=426

In This Thread

Prev Next