Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pytest.skip not respected after initial figure created in a test #172

Closed
@greglucas

Description

@greglucas

In Cartopy, we have some parameterized tests that create a figure, try to do some things on that figure in a try/except clause, and if it hits the exception throw a pytest.skip() to indicate we want to skip that test. In the recent 0.16 release, this no longer works and the images are compared and produce a failure due to their being no image to compare against (since we want it skipped). See comment here: SciTools/cartopy#2058 (review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions