8000 Test suite issues when using pytest 8 · Issue #273 · jnothman/UpSetPlot · GitHub
[go: up one dir, main page]

Skip to content

Test suite issues when using pytest 8 #273

Open

Description

@tillea

Hi,
the Debian packaged version of UpSetPlot received two related bug reports about failing its build time test as well as its CI test (in Debian terminology autopkgtest) which occured since the switch to pytest 8.0.2 (formerly 7.4.4, where all test worked). You can see a full test log in our CI. While the problem was reported against UpSetPlot 0.8.0 I verified that the problem persists in 0.9.0.

To work around the problem I marked the only affected test xfail in a patch. I guess the issue is caused by this line of code which I kindly leave to your inspection. Please note that I have no idea about UpSetPlot itself, I'm not maintaining the package inside Debian just had some dependencies affected and tried this workaround.

Kind regards, Andreas.

Activity

  1. mr-c commented on Mar 18, 2024

    @mr-c

    https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests

    I think adding

        with warnings.catch_warnings():
            warnings.simplefilter("error")

    in place of the with pytest.warns(None): should fix this

  2. tillea commented on Mar 18, 2024

    @tillea
    Author
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0