Skip to content

Explicitly pytest.skip any tests that depend on optional dependencies #640

Closed

Description

@dstansby

As a quick fix in #637, some tests for the CRC32C codec are only ever defined if crc32c is installed. If crc32c isn't installed, these tests are silently not defined or reported to pytest.

In order to report that these tests are being skipped to pytest, it would be much better to mark them with a pytest skip mark, so when the dependency isn't installed these skipped tests get reported to pytest.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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