Skip to content

Unable to disable / deselect currently unsupported dtypes #10

Closed
@pmeier

Description

@pmeier

I'm currently running this test suite against PyTorch. For now uint16, uint32, and uint64 are not supported. Unfortunately, this marks a lot of tests as failing completely instead of only failing for these dtypes. For example in

@pytest.mark.parametrize('func_name', [i for i in
elementwise_functions.__all__ if
nargs(i) > 1])
@given(shape1=shapes, shape2=shapes, dtype=data())
def test_broadcasting_hypothesis(func_name, shape1, shape2, dtype):

only the operator name is regarded as parameter, whereas the shapes and the dtype in handled within the test.

To make this easier it should be possible to

  • disable unsupported dtypes in one central place, or
  • make the dtype a parameter so it can be deselected with pytest's -k flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions