-
Notifications
You must be signed in to change notification settings - Fork 34
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
Different results running tests via pytest or tox locally #254
Comments
As a default, I think pytest & tox should "match". @alessandrofelder? |
Agreed. And by default, I think we'd like to always have
So yes? (and that maybe means some refactoring/adapting to dependency updates? |
I looked into this some more, and it appears the issue isn't with Rather it's an issue with a difference in versions of |
OK, does that mean we can close this as unrelated, @K-Meech ? |
Yes I think so - I have a working dev environment now excluding napari. It does mean that any environment including napari + brainglobe_utils will likely throw these deprecation warnings though - so I don't know if that affects any modules that depend on both? |
We defo have many of those environments. |
I think it's because a clean environment without napari uses Napari brings in version 7.0.1 of this module, which corresponds to version 3.13 of python. As we're using version 3.10 in brainglobe, this means it's effectively upgrading importlib.metadata to the latest version, which has an additional warning not included in 3.10. |
Interesting - excellent detective work, thank you! I wonder how much work it will be (and whether it's worth it) to move to (Side note: we aim to support more than just 3.10, and AFAIK we succeed in doing this apart from tensorflow + python 3.11 issues on Windows, which should be resolved by brainglobe/cellfinder#377) |
Thanks @alessandrofelder - are you aiming to support python 3.12 then? If so, then it would probably be better to add a fix for this warning, as I think it was introduced in 3.12 (and so would affect both |
Yes, ideally from April, dependencies and our workload allowing 🙂 |
At the moment, running tests with just
pytest
, results in errors:while running via
tox
succeeds.This is due to pytest using
filterwarnings
under tool.pytest.ini_options to turn any unlisted warnings into errors. This isn't used when running via tox.Should
filterwarnings
also be used for tox runs?The text was updated successfully, but these errors were encountered: