-
Notifications
You must be signed in to change notification settings - Fork 18
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
tests failing during collection on 3.12 #44
Comments
This looks to be due to the DeprecationWarning. If you run the tests with My best guess as to why is that pytest fails on the DeprecationWarning which occurs while pandas is importing dateutil.tz, and immediately cancels the import process, leading to the "partially initialized" state in subsequent tests. |
Hey @DanGonite57 ! Thanks for checking this out. You're absolutely right! I solved this in another project with some warning filters around offending imports - ugly but it works https://github.com/teamtomo/mmdf/blob/main/tests/test_functions.py If you'd like to open a PR with similar here I'd appreciate it! Otherwise I'll fix it myself when I find some time :-) |
Is there any case where you would want pytest to fail on certain deprecation warnings (or certain warnings in general) but not others? If not, I might suggest adjusting the configuration in the pyproject.toml instead |
@DanGonite57 unsure, I think I want to see them when testing against pre-release versions of packages etc? Definitely open to alternative solutions |
not sure what's going on here, this is all internal to pandas and not starfile code but can't find anyone complaining online... have disabled 3.12 tests for now but they should be reenabled
https://github.com/teamtomo/starfile/actions/runs/7534153554/job/20508013242?pr=43
The text was updated successfully, but these errors were encountered: