-
-
Notifications
You must be signed in to change notification settings - Fork 692
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
Fix pytest deprecation of pytest.config global. #1404
Fix pytest deprecation of pytest.config global. #1404
Conversation
Have you tried running the tests with the latest pytest version? There are some places we limit that which would be nice to roll back. |
I'm sorry, but I don't think I get the point as my English is not very good. Do you mean that this will fail with the lastest pytest, or that I should run it with the lastest to ensure nothing is broken? |
I ran it with latest pytest (5.1.2) and everything passes except for the skipped ones and
I'm not sure what @flacjacket meant either 😅 |
Thanks for running the tests. And I also encountered this
but I failed to fix it as I'm not familiar with image processing. Maybe you'd better post it as a seperated issue @pawamoy . |
Sorry for the confusion! In c29dfb5 we pinned the pytest version used to be |
All test suites except two (they are already reported as issues) are passed with pytest 4.6.5.
What's the reason for this limit? |
Some of the tests stopped passing, I'd have to go back to check which ones, but limiting the pytest version kept the tests green. |
Per https://docs.pytest.org/en/latest/deprecations.html#pytest-config-global
It prevents the WM process to be forked in the subprocess in conftest.py, so I fixed it, and all the tests passed on my side.
Hopefully it won't break the CI.