Skip to content

Add some support for making assertions expecting exceptions #21

@EamonNerbonne

Description

@EamonNerbonne

From stephen.swensen on January 11, 2012 21:44:44

Something similar to Unquote's "raises" operator: https://code.google.com/p/unquote/wiki/GettingStarted . i.e. the assertion fails if the excepted exception (a generic argument) is not a subclass of the actual expression, or indeed if no exception was thrown at all.

Somewhat related to issue #20 (you want to print as much known / evaluated information about the expression as possible before the actual but not expected exception is thrown or otherwise print everything when no exception thrown).

Original issue: http://code.google.com/p/expressiontocode/issues/detail?id=21

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions