Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test suite issues when using pytest 8 #273

Open
tillea opened this issue Mar 18, 2024 · 2 comments
Open

Test suite issues when using pytest 8 #273

tillea opened this issue Mar 18, 2024 · 2 comments

Comments

@tillea
Copy link

tillea commented Mar 18, 2024

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.

@mr-c
Copy link

mr-c commented Mar 18, 2024

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

@tillea
Copy link
Author

tillea commented Mar 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants