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 warnings in 1.16.0 #194
Comments
The solution is to transform |
@adrienverge That error is really annoying but there is a way to avoid it by disabling this specific warning. For pytest users there is a nice way to disable these warnings, see an example at https://github.com/ansible-community/molecule/blob/master/setup.cfg#L144-L152 -- in fact it may be possible to do it for other test runners too. Personally I would not mind dropping support for py27 sooner. A maintenance branch could be created for emergency patches, if the need arises (I had a single case where I had to pin-down one of my dependencies). |
Interesting, thanks! Do you have a solution that would work for all runners, without adding dependencies?
That's smart, but I don't feel these warnings are "really annoying", at least not enough to create and maintain an extra branch. Python 2 support will be dropped at the end of the year. |
Python itself allows control of warnings levels using an environment variable, see https://docs.python.org/3/using/cmdline.html#envvar-PYTHONWARNINGS. So you could make it generic as long you define this environment variable. AFAIK, this variable must be loaded before the interpreter starts, so is likely that it will not work to hack it inside your I think that the "all runners" goal is a bit too broad, is like saying that one project would want to support "any python" version, sooner or later one needs to make some trade-offs. For example, you could create a Makefile with a PS. pypa/setuptools#1684 may also be of interest for you. |
Python 2 support has been dropped and these test warnings do not appear anymore. |
FreeBSD 12 amd64
python-3.6
The text was updated successfully, but these errors were encountered: