Skip to content

[Feature] Remove xfail in tests/.../test_connected_components_labelling.py #565

@IgorTatarnikov

Description

@IgorTatarnikov

Is your feature request related to a problem? Please describe.
Currently, tests are marked as XFAIL with two parameter sets that shouldn't pass. We should ensure the tests fail in the expected manner in a separate test.

Describe the solution you'd like
Separate the parameter sets that are marked as XFAIL into a separate test that asserts a specific failure mode.

(254, np.uint16), # results in < 2**16 structures, so not a problem
pytest.param(
256, np.uint16, marks=pytest.mark.xfail
), # results in 2**16 structures, so last structure gets labelled 0
pytest.param(
258, np.uint16, marks=pytest.mark.xfail
), # results in > 2**16 structures, so two structures with label 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions