Skip to content

assert: throw real error in doesNotThrow() #12079

@mscdex

Description

@mscdex
  • Version: all?
  • Platform: n/a
  • Subsystem: assert

Currently assert.doesNotThrow() does not actually throw or otherwise give the message/content of the unexpected error. Instead it just throws a 'Got unwanted error' error, which isn't really helpful. It would be nice to either throw the seen error instead (preferred) or at the very least attach the unexpected error as a property on the thrown error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    assertIssues and PRs related to the assert subsystem.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions