Skip to content

_setUp() convention no longer allows a fixture to skip a test #31

@zzzeek

Description

@zzzeek

A fixture might be trying to grab a not-necessarily-available resource, like a database connection. The fixture should be able to invoke skipTest(). This was possible when overriding the setUp() method, but in the new _setUp() convention, all exception are caught including skip exceptions. Fixture should have a skip() method and setUp() should handle this special exception as a skip for the test overall.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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